summaryrefslogtreecommitdiff
path: root/www/js/controllers.js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-09-01 11:44:40 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-09-01 11:44:40 -0400
commit2e1a669455190e3d0d857e613cc34cd22f4862c0 (patch)
tree850e2d0abcd5dbbc603b5f054725691ed5abb951 /www/js/controllers.js
parentdc5dd1c8684266c320cccd6e8943b5d419a280e4 (diff)
mostly formatting and removal of console.logs
Former-commit-id: 5cbac40ad5ccb7096fb7b9f58696e923ba282232
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