summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-16 10:24:40 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-16 10:24:40 -0400
commit38cf76c23d1ac990fa9a8095006b9a684d07d99f (patch)
treebcace9c545c90a45939eb6023a8356ad052129ae /www
parenta1c612aaaa8945aad94ee7012014690307ab9bef (diff)
handled consoleEvents when footer is dragged up instead of tapped
Former-commit-id: 5acd178850797e91ef18ce6df1e2e681817ec533
Diffstat (limited to 'www')
-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) {