summaryrefslogtreecommitdiff
path: root/www/js/HelpCtrl.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/HelpCtrl.js')
-rw-r--r--www/js/HelpCtrl.js14
1 files changed, 13 insertions, 1 deletions
diff --git a/www/js/HelpCtrl.js b/www/js/HelpCtrl.js
index 35acd30d..89c2171b 100644
--- a/www/js/HelpCtrl.js
+++ b/www/js/HelpCtrl.js
@@ -6,6 +6,18 @@ angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', ['$scope', '$ro
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
};
-console.log ("***** HELP ****");
+
+
+ //-------------------------------------------------------------------------
+ // Lets make sure we set screen dim properly as we enter
+ // The problem is we enter other states before we leave previous states
+ // from a callback perspective in ionic, so we really can't predictably
+ // reset power state on exit as if it is called after we enter another
+ // state, that effectively overwrites current view power management needs
+ //------------------------------------------------------------------------
+ $scope.$on('$ionicView.enter', function () {
+ console.log("**VIEW ** Help Ctrl Entered");
+ ZMDataModel.setAwake(false);
+ });
}]);