diff options
| author | PliablePixels <pliablepixels@gmail.com> | 2015-09-11 16:26:13 +0100 |
|---|---|---|
| committer | PliablePixels <pliablepixels@gmail.com> | 2015-09-11 16:26:13 +0100 |
| commit | d6189d6f85897be4250ca4b87f21f6113a10b68c (patch) | |
| tree | 6cc9800feee796ae11bacc0a7506b96b5a172709 /www/js/DevOptionsCtrl.js | |
| parent | 6fa4b725624feba76031e7354a4d94aed5339957 (diff) | |
Enabled a run time debug mode so I can see more details when testers report quirky bugs. It's in developer options.
Diffstat (limited to 'www/js/DevOptionsCtrl.js')
| -rw-r--r-- | www/js/DevOptionsCtrl.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/www/js/DevOptionsCtrl.js b/www/js/DevOptionsCtrl.js index 1a857cda..b711a373 100644 --- a/www/js/DevOptionsCtrl.js +++ b/www/js/DevOptionsCtrl.js @@ -25,13 +25,14 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope' // Perform the login action when the user submits the login form //------------------------------------------------------------------ $scope.saveDevOptions = function () { - console.log('Saving Dev Options'); + ZMDataModel.zmDebug ("SaveDevOptions: called"); if (parseInt($scope.loginData.maxMontage) > zm.safeMontageLimit) { $ionicPopup.alert({ title: 'Note', template: 'You have selected to view more than 10 monitors in the Montage screen. Note that this is very resource intensive and may load the server or cause issues in the application. If you are not sure, please consider limiting this value to 10' }); + ZMDataModel.zmDebug ("SaveDevOptions: " + $scope.loginData.maxMontage + " monitors for montage"); } @@ -41,7 +42,9 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope' if (parseInt($scope.loginData.refeshSec) <=0) { + ZMDataModel.zmDebug ("SaveDevOptions: refresh sec was too low at " + $scope.loginData.refreshSec+ " reset to 1"); $scope.loginData.refreshSec=1; + } @@ -50,7 +53,7 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope' } - + ZMDataModel.zmDebug ("SaveDevOptions: Saving to disk"); ZMDataModel.setLogin($scope.loginData); $ionicPopup.alert({ |
