From 3e3f0e1e4ccd57b3b32028bf9980f9104ae6f913 Mon Sep 17 00:00:00 2001 From: Alib Date: Tue, 23 Mar 2010 18:47:27 +0100 Subject: corrected bug when returning back to home --- js/istreamdev.js | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'js') diff --git a/js/istreamdev.js b/js/istreamdev.js index 1ce37e9..743eee0 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -95,6 +95,12 @@ function addAudiofiles() { $('#home_but').tap(function(event) { event.preventDefault(); $(this).parents('div').find('a').unbind("tap"); + $('#home').bind('pageAnimationEnd', function(event, info){ + if (info.direction == 'in') { + $('#jqt div[rel="browser"]').remove(); + $('#home').unbind('pageAnimationEnd'); + } + }); jQT.goTo('#home','flip'); }); @@ -385,6 +391,7 @@ $('#streamchannel span.recButton a').tap(function(event) { gen_edittimer(id,name,active,channumber,channame,rec_date,starttime,endtime); return false; }); + $('#streamrec span.streamButton a').tap(function(event) { event.preventDefault(); json_start(this); @@ -616,17 +623,6 @@ $('div[rel="browser"] a[class="back"]').tap(function(event) { $(this).parents('div[rel="browser"]').remove(); }); -$('div[rel="browser"] #home_but').tap(function(event) { - event.preventDefault(); - $(this).parents('div[rel="browser"]').find('ul[rel="filelist"] li[class="arrow"] a').unbind("tap"); - $('#home').bind('pageAnimationEnd', function(event, info){ - $('#jqt div[rel="browser"]').remove(); - $('#home').unbind('pageAnimationEnd'); - }); -}); - - - //Generate browser div according to type function gen_browser(path,browser,name,foldertype) { browser_template = '
'; -- cgit v1.2.3