summaryrefslogtreecommitdiff
path: root/www/js/MenuController.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/MenuController.js')
-rw-r--r--www/js/MenuController.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/www/js/MenuController.js b/www/js/MenuController.js
index 511ba030..8496acff 100644
--- a/www/js/MenuController.js
+++ b/www/js/MenuController.js
@@ -2,7 +2,7 @@
/* jslint browser: true*/
/* global cordova,StatusBar,angular,console */
-angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$ionicSideMenuDelegate', 'zm', '$stateParams', '$ionicHistory', '$state', 'NVR', '$rootScope', '$ionicPopup', '$translate', '$timeout', '$location', 'EventServer', 'zmAutoLogin', '$http', 'SecuredPopups', function ($scope, $ionicSideMenuDelegate, zm, $stateParams, $ionicHistory, $state, NVR, $rootScope, $ionicPopup, $translate, $timeout, $location, EventServer, zmAutoLogin, $http, SecuredPopups) {
+angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$ionicSideMenuDelegate', 'zm', '$stateParams', '$ionicHistory', '$state', 'NVR', '$rootScope', '$ionicPopup', '$translate', '$timeout', '$location', 'EventServer', 'zmAutoLogin', '$http', 'SecuredPopups', '$ionicLoading', function ($scope, $ionicSideMenuDelegate, zm, $stateParams, $ionicHistory, $state, NVR, $rootScope, $ionicPopup, $translate, $timeout, $location, EventServer, zmAutoLogin, $http, SecuredPopups, $ionicLoading) {
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
};
@@ -38,7 +38,8 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
window.stop();
// after window stop executes, in next cycle
// this _should_ ensure stop concludes before
- // exit/entry lifecycles kick in?
+ // exit/entry lifecycles kick in?z
+
$timeout (function() {$state.go(view,args);});
});*/
@@ -56,7 +57,7 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io
{ text: $translate.instant('kButtonCancel'),
type: 'button-assertive',
onTap: function (e) {
-
+ $ionicSideMenuDelegate.toggleLeft();
}
},
{