diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2017-09-21 12:49:18 -0400 |
| commit | b28028ac4082842143b0f528d6bc539da6ccb419 (patch) | |
| tree | 1e26ea969a781ed8e323fca4e3c76345113fc694 /www/js/controllers.js | |
| parent | 676270d21beed31d767a06c89522198c77d5d865 (diff) | |
mega changes, including updates and X
Diffstat (limited to 'www/js/controllers.js')
| -rw-r--r-- | www/js/controllers.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/www/js/controllers.js b/www/js/controllers.js new file mode 100644 index 00000000..5321384b --- /dev/null +++ b/www/js/controllers.js @@ -0,0 +1,29 @@ +/* jshint -W041 */ +/* jshint browser: true*/ +/* global cordova,StatusBar,angular,console */ + + + +angular.module('zmApp.controllers', ['ionic', 'ionic.utils', 'ngCordova', 'ng-mfb', 'angularCircularNavigation', 'jett.ionic.content.banner', 'ionic-pullup', 'ngWebsocket']) + +.controller('zmApp.BaseController', function ($scope, $ionicSideMenuDelegate, $ionicPlatform, $timeout, $rootScope) { + $scope.openMenu = function () { + $ionicSideMenuDelegate.toggleLeft(); + }; + + $ionicPlatform.registerBackButtonAction(function (event) { + + $ionicSideMenuDelegate.toggleLeft(); + $timeout(function () { + $rootScope.stateofSlide = $ionicSideMenuDelegate.isOpen() + new Date(); + }, 500); + + + }, 100); + + // Added for electron build to stop title propagation + $scope.$on('$ionicView.afterEnter', function (ev, data) { + ev.stopPropagation(); + }); + +});
\ No newline at end of file |
