summaryrefslogtreecommitdiff
path: root/www/js/LogCtrl.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-10-21 18:49:32 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-10-21 18:49:32 -0400
commite3076881b748fff53690373f02211706b60fab79 (patch)
treeb417ca52d1be5198bd5f7aefe646782b0d60b4db /www/js/LogCtrl.js
parent3f549f3d6ea3dac1fbf862e236549ce0dd7fd570 (diff)
#725 moved evaluate tapped notification to service,trapped handler in all controllers
Diffstat (limited to 'www/js/LogCtrl.js')
-rw-r--r--www/js/LogCtrl.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/www/js/LogCtrl.js b/www/js/LogCtrl.js
index 46db4304..9a84661a 100644
--- a/www/js/LogCtrl.js
+++ b/www/js/LogCtrl.js
@@ -26,6 +26,17 @@ angular.module('zmApp.controllers').controller('zmApp.LogCtrl', ['$scope', '$roo
loadLogs();
}
+ $scope.$on ( "process-push", function () {
+ NVRDataModel.debug (">> LogCtrl: push handler");
+ var s = NVRDataModel.evaluateTappedNotification();
+ NVRDataModel.debug("tapped Notification evaluation:"+ JSON.stringify(s));
+ $ionicHistory.nextViewOptions({
+ disableAnimate:true,
+ disableBack: true
+ });
+ $state.go(s[0],s[1],s[2]);
+ });
+
$scope.flipLogs = function () {
if ($scope.logEntity == 'ZoneMinder')
$scope.logEntity = $rootScope.appName;