summaryrefslogtreecommitdiff
path: root/www/js/controllers.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/controllers.js')
-rw-r--r--www/js/controllers.js33
1 files changed, 16 insertions, 17 deletions
diff --git a/www/js/controllers.js b/www/js/controllers.js
index 412f9831..5321384b 100644
--- a/www/js/controllers.js
+++ b/www/js/controllers.js
@@ -4,27 +4,26 @@
-angular.module('zmApp.controllers', ['ionic', 'ionic.utils', 'ngCordova', 'ng-mfb','angularCircularNavigation', 'jett.ionic.content.banner', 'ionic-pullup', 'ngWebsocket' ])
+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();
- };
+.controller('zmApp.BaseController', function ($scope, $ionicSideMenuDelegate, $ionicPlatform, $timeout, $rootScope) {
+ $scope.openMenu = function () {
+ $ionicSideMenuDelegate.toggleLeft();
+ };
- $ionicPlatform.registerBackButtonAction(function (event) {
-
- $ionicSideMenuDelegate.toggleLeft();
- $timeout (function() {
+ $ionicPlatform.registerBackButtonAction(function (event) {
+
+ $ionicSideMenuDelegate.toggleLeft();
+ $timeout(function () {
$rootScope.stateofSlide = $ionicSideMenuDelegate.isOpen() + new Date();
- },500);
+ }, 500);
-
-}, 100);
- // Added for electron build to stop title propagation
- $scope.$on('$ionicView.afterEnter', function(ev, data) {
- ev.stopPropagation();
- });
+ }, 100);
-});
+ // Added for electron build to stop title propagation
+ $scope.$on('$ionicView.afterEnter', function (ev, data) {
+ ev.stopPropagation();
+ });
+}); \ No newline at end of file