diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-01 09:18:13 -0500 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-11-01 09:18:13 -0500 |
| commit | 2c2f2a731c71b8211714d7851a96ecbeef2cffd4 (patch) | |
| tree | c470ceb9921e5ae23a96b04a26735bdf961675e7 /www/js/DevOptionsCtrl.js | |
| parent | b13d9dcdb63a397c8dc88002be237f927b9281ea (diff) | |
moved save message outside of function so its not repeated on exit (applies to autosave in developer settings)
Diffstat (limited to 'www/js/DevOptionsCtrl.js')
| -rw-r--r-- | www/js/DevOptionsCtrl.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/www/js/DevOptionsCtrl.js b/www/js/DevOptionsCtrl.js index 129b84fa..fe92877d 100644 --- a/www/js/DevOptionsCtrl.js +++ b/www/js/DevOptionsCtrl.js @@ -87,16 +87,18 @@ angular.module('zmApp.controllers').controller('zmApp.DevOptionsCtrl', ['$scope' ZMDataModel.zmDebug("SaveDevOptions: Saving to disk"); ZMDataModel.setLogin($scope.loginData); + + } + + $scope.saveDevOptions = function () { + + saveDevOptions(); $ionicPopup.alert({ title: 'Settings Saved', template: 'Please explore the menu and enjoy zmNinja!' }).then(function (res) { $ionicSideMenuDelegate.toggleLeft(); }); - } - - $scope.saveDevOptions = function () { - saveDevOptions(); }; //------------------------------------------------------------------ |
