summaryrefslogtreecommitdiff
path: root/www/js/EventServer.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/EventServer.js')
-rw-r--r--www/js/EventServer.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/EventServer.js b/www/js/EventServer.js
index ee606a63..2d5831e9 100644
--- a/www/js/EventServer.js
+++ b/www/js/EventServer.js
@@ -292,7 +292,7 @@ angular.module('zmApp.controllers')
{
//emit alarm details - this is when received over websockets
- $rootScope.$emit('alarm',
+ $rootScope.$broadcast('alarm',
{
message: listOfMonitors
});
@@ -658,7 +658,7 @@ angular.module('zmApp.controllers')
$rootScope.tappedEid = 0;
$rootScope.tappedMid = 0;
}
- $rootScope.$emit('process-push');
+ $rootScope.$broadcast('process-push');
}
else // app is foreground