From 8d79c6f8746eb423c9ab87c00e6519ffca7b7428 Mon Sep 17 00:00:00 2001 From: Alib Date: Fri, 26 Mar 2010 10:43:51 +0100 Subject: fixed reset time --- js/istreamdev.js | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index f12bd26..778cc12 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -149,6 +149,8 @@ $('a[class="back"]').tap(function(event) { event.preventDefault(); $(this).parents('div').find('a').unbind("tap"); }); + + // show active sessions $(document).ready(function(e){ getRunningSessions(); @@ -164,6 +166,19 @@ $('#home').bind('pageAnimationStart', function(event, info){ }) }); + +$(document).ready(function(e){ +$('#epg').bind('pageAnimationStart', function(event, info){ + if (info.direction == 'in') { + $('#epg #epg_time').val(""); + $('#epg #layer_epgtime').html(''); + } + }) +}); + + + + //trick to prevent animation bug with object. $(document).ready(function(e){ $('#streaming').bind('pageAnimationEnd', function(event, info){ @@ -979,7 +994,7 @@ day = $('#epgform select##epg_day').val(); else if ( channel == "all" ) { programs = 2; } else { - programs = 2; + programs = "day"; } get_epg(channel,time,day,programs); $(this).removeClass('active'); -- cgit v1.2.3