From c43cf1fdd12217547f57d65cfe62f9fe488046b8 Mon Sep 17 00:00:00 2001 From: PliablePixels Date: Sun, 17 May 2015 19:35:58 -0400 Subject: added comments --- www/js/MonitorCtrl.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'www/js/MonitorCtrl.js') diff --git a/www/js/MonitorCtrl.js b/www/js/MonitorCtrl.js index 7efe3e33..b7469a9d 100644 --- a/www/js/MonitorCtrl.js +++ b/www/js/MonitorCtrl.js @@ -26,6 +26,8 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$ionicPopu }); }; +// This function takes care of changing function parameters +// For now, I've only limited it to enable/disable and change monitor mode $scope.changeConfig = function (monitorName, monitorId, enabled, func) { var checked = "false"; @@ -111,6 +113,8 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$ionicPopu }) + // I am restarting ZM after monitor change + // do I need this? FIXME: Ask Kyle .success(function () { $ionicLoading.show({ @@ -156,14 +160,6 @@ angular.module('zmApp.controllers').controller('zmApp.MonitorCtrl', ['$ionicPopu }; - $scope.notSupported = function () { - - $ionicPopup.alert({ - title: 'In a Galaxy Far Far Away...', - template: 'This feature will be supported sometime in the future.' - }); - }; - $scope.isSimulated = function () { return ZMDataModel.isSimulated(); -- cgit v1.2.3