diff options
author | Alib <aliboba@free.fr> | 2010-03-17 16:50:28 +0100 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-17 16:50:28 +0100 |
commit | d7ae7e6f8f554f8f64aeaa7911604103db478357 (patch) | |
tree | aba19c5a17799a7a200343d33b938d0deb0ceb76 /js | |
parent | 1a6f00a22c4f27b4c2c830cb57a98689563d4fff (diff) | |
download | istreamdev-d7ae7e6f8f554f8f64aeaa7911604103db478357.tar.gz istreamdev-d7ae7e6f8f554f8f64aeaa7911604103db478357.tar.bz2 |
reinit activesession when goign back to home
Diffstat (limited to 'js')
-rw-r--r-- | js/istreamdev.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/js/istreamdev.js b/js/istreamdev.js index f163f49..5319adf 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -68,8 +68,6 @@ $.getJSON("bin/backend.php", //Goto home
$('#home_but').tap(function(event) {
event.preventDefault();
- getRunningSessions();
- reinitDivs();
jQT.goTo('#home','flip');
});
@@ -149,6 +147,15 @@ $(document).ready(function(e){ getRunningSessions();
});
+//reinit RunningSessions when going to Home:
+$(document).ready(function(e){
+$('#home').bind('pageAnimationStart', function(event, info){
+ if (info.direction == 'in') {
+ getRunningSessions()
+ }
+ })
+});
+
function getRunningSessions() {
var dataString = "action=getRunningSessions";
$('#home #runningsessions').html('');
|