From 2c2f2a731c71b8211714d7851a96ecbeef2cffd4 Mon Sep 17 00:00:00 2001 From: Arjun Roychowdhury Date: Sun, 1 Nov 2015 09:18:13 -0500 Subject: moved save message outside of function so its not repeated on exit (applies to autosave in developer settings) --- www/js/DevOptionsCtrl.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'www/js/DevOptionsCtrl.js') 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(); }; //------------------------------------------------------------------ -- cgit v1.2.3