diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-09-10 08:20:44 +0100 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-09-10 08:20:44 +0100 |
| commit | f2ef2c5d4eac539db86a5f0dbacad9e1bd205ba5 (patch) | |
| tree | 97885710659426fdd1d883d3f3b2d400ac64e4c9 /www/js/ModalCtrl.js | |
| parent | a1de1fd608ce07949a18a5b2089e5b5cf81364b2 (diff) | |
You can now modify frame change delay - to take control in spotty/slow network conditions
Diffstat (limited to 'www/js/ModalCtrl.js')
| -rw-r--r-- | www/js/ModalCtrl.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/www/js/ModalCtrl.js b/www/js/ModalCtrl.js index 3cb2787d..64fdc523 100644 --- a/www/js/ModalCtrl.js +++ b/www/js/ModalCtrl.js @@ -172,11 +172,12 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco }, ]}; + $interval.cancel(intervalModalHandle); intervalModalHandle= $interval(function () { loadModalNotifications(); // console.log ("Refreshing Image..."); - }.bind(this), 1000); + }.bind(this), ld.refreshSec * 1000); loadModalNotifications(); @@ -202,7 +203,7 @@ angular.module('zmApp.controllers').controller('ModalCtrl', ['$scope', '$rootSco intervalModalHandle= $interval(function () { loadModalNotifications(); // console.log ("Refreshing Image..."); - }.bind(this), 1000); + }.bind(this), ld.refreshSec*1000); $rootScope.modalRand = Math.floor((Math.random() * 100000) + 1); |
