diff options
-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('');
|