diff options
| author | Pliable Pixels <pliablepixels@users.noreply.github.com> | 2018-05-14 12:24:07 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-14 12:24:07 -0400 |
| commit | cb1129fddbeffa74ca730d0ab9fa33fb5727c230 (patch) | |
| tree | 46ee35674f7c1817f105b186b9dbb340ef77e022 /www/js/MenuController.js | |
| parent | 2cc5aa1508342e18a61f96d5abe67c2518966300 (diff) | |
| parent | 91da4b8a12e7fb3dbc0183197a209a524abd851b (diff) | |
Merge pull request #631 from pliablepixels/tv
Tv init code - not ready - disabled for now
Diffstat (limited to 'www/js/MenuController.js')
| -rw-r--r-- | www/js/MenuController.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/www/js/MenuController.js b/www/js/MenuController.js index 477849a6..f09d1c69 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', 'NVRDataModel', '$rootScope', '$ionicPopup', '$translate', '$timeout', function ($scope, $ionicSideMenuDelegate, zm, $stateParams, $ionicHistory, $state, NVRDataModel, $rootScope, $ionicPopup, $translate, $timeout) { +angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$ionicSideMenuDelegate', 'zm', '$stateParams', '$ionicHistory', '$state', 'NVRDataModel', '$rootScope', '$ionicPopup', '$translate', '$timeout', '$location',function ($scope, $ionicSideMenuDelegate, zm, $stateParams, $ionicHistory, $state, NVRDataModel, $rootScope, $ionicPopup, $translate, $timeout, $location) { $scope.openMenu = function () { $ionicSideMenuDelegate.toggleLeft(); }; @@ -13,6 +13,17 @@ angular.module('zmApp.controllers').controller('MenuController', ['$scope', '$io //---------------------------------------------------------------- + $scope.go = function(p) { + + + $ionicHistory.nextViewOptions({ + historyRoot: true, + disableAnimate: true, + expire: 300 + }); + $ionicSideMenuDelegate.toggleLeft(); + $location.path(p); + }; $scope.navigateView = function (view, args) { |
