summaryrefslogtreecommitdiff
path: root/www/js/ModalCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/ModalCtrl.js')
-rw-r--r--www/js/ModalCtrl.js5
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);