summaryrefslogtreecommitdiff
path: root/www/js/MenuController.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2018-05-14 12:22:53 -0400
committerPliable Pixels <pliablepixels@gmail.com>2018-05-14 12:22:53 -0400
commit91da4b8a12e7fb3dbc0183197a209a524abd851b (patch)
tree46ee35674f7c1817f105b186b9dbb340ef77e022 /www/js/MenuController.js
parentc6c23b69ec85b0668e03c9fef95923b2b124ca1b (diff)
initial framework code for tv navigation
Diffstat (limited to 'www/js/MenuController.js')
-rw-r--r--www/js/MenuController.js13
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) {