summaryrefslogtreecommitdiff
path: root/www/js/MonitorCtrl.js
diff options
context:
space:
mode:
authorARC <arjunrc@gmail.com>2015-05-10 17:21:23 -0400
committerARC <arjunrc@gmail.com>2015-05-10 17:21:23 -0400
commitc773727f312c647750014e906cc9c0b010ab8454 (patch)
tree76dadfd5f75b55c5200138ee472f309790f2005b /www/js/MonitorCtrl.js
parentf2e3d1c121903f36fe996538b14429da733c06e7 (diff)
JSHinted everything, added dependency arrays in all controllers for future minification
Diffstat (limited to 'www/js/MonitorCtrl.js')
-rw-r--r--www/js/MonitorCtrl.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js
index 80758cdd..aec49697 100644
--- a/www/js/MonitorCtrl.js
+++ b/www/js/MonitorCtrl.js
@@ -1,14 +1,18 @@
+/* jshint -W041 */
+/* jslint browser: true*/
+/* global cordova,StatusBar,angular,console */
+
// controller for Monitor View
// refer to comments in EventCtrl for the modal stuff. They are almost the same
-angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', function ($scope, ZMDataModel, message, $ionicSideMenuDelegate, $ionicLoading, $ionicModal, $state, $ionicLoading) {
+angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$scope', 'ZMDataModel', 'message', '$ionicSideMenuDelegate', '$ionicLoading', '$ionicModal', '$state',function ($scope, ZMDataModel, message, $ionicSideMenuDelegate, $ionicLoading, $ionicModal, $state) {
$scope.monitors = [];
$scope.openMenu = function () {
$ionicSideMenuDelegate.toggleLeft();
- }
+ };
$scope.reloadView = function () {
console.log("*** Refreshing Modal view ***");
@@ -18,7 +22,7 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', function ($s
noBackdrop: true,
duration: 2000
});
- }
+ };
$scope.isSimulated = function () {
return ZMDataModel.isSimulated();
@@ -32,7 +36,7 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', function ($s
template: "loading, please wait...",
noBackdrop: true,
});*/
- }
+ };
@@ -71,7 +75,7 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', function ($s
template: "please wait...",
noBackdrop: true,
duration: 15000
- })
+ });
$scope.modal.show();
});
@@ -105,4 +109,4 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', function ($s
};
-});
+}]);