summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/js/EventCtrl.js13
-rw-r--r--www/js/MonitorCtrl.js6
2 files changed, 10 insertions, 9 deletions
diff --git a/www/js/EventCtrl.js b/www/js/EventCtrl.js
index db978454..29a7a7f0 100644
--- a/www/js/EventCtrl.js
+++ b/www/js/EventCtrl.js
@@ -69,6 +69,7 @@ angular.module('zmApp.controllers')
$scope.events = [];
getInitialEvents();
setupWatchers();
+ footerExpand();
});
$scope.$on('$ionicView.beforeEnter', function () {
@@ -745,7 +746,13 @@ angular.module('zmApp.controllers')
//--------------------------------------------------------------------------
$scope.footerExpand = function () {
- //https://server/zm/api/events/consoleEvents/5%20minute.json
+ footerExpand();
+
+ };
+
+ function footerExpand()
+ {
+ //https://server/zm/api/events/consoleEvents/5%20minute.json
var ld = NVRDataModel.getLogin();
var af = "/AlarmFrames >=: " + ld.enableAlarmCount;
@@ -890,9 +897,7 @@ angular.module('zmApp.controllers')
}
});
-
- };
-
+ }
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js
index c14e7e65..fd0c2780 100644
--- a/www/js/MonitorCtrl.js
+++ b/www/js/MonitorCtrl.js
@@ -22,8 +22,6 @@ angular.module('zmApp.controllers')
var loginData;
-
-
// --------------------------------------------------------
// Handling of back button in case modal is open should
// close the modal
@@ -50,8 +48,6 @@ angular.module('zmApp.controllers')
}, 1000);
-
-
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
};
@@ -147,7 +143,7 @@ angular.module('zmApp.controllers')
{
text: $translate.instant('kButtonCancel'),
- },
+ },
{
text: $translate.instant('kButtonSave'),
onTap: function (e) {