From 2e1a669455190e3d0d857e613cc34cd22f4862c0 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Thu, 1 Sep 2016 11:44:40 -0400 Subject: mostly formatting and removal of console.logs Former-commit-id: 5cbac40ad5ccb7096fb7b9f58696e923ba282232 --- www/js/controllers.js | 33 ++++++++++++++++----------------- 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'www/js/controllers.js') 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 -- cgit v1.2.3