summaryrefslogtreecommitdiff
path: root/www/js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2016-11-22 14:06:58 -0400
committerPliable Pixels <pliablepixels@gmail.com>2016-11-22 14:06:58 -0400
commitb9c58df13788fd7aec1a1e3a91d76beab5d8f01b (patch)
treef7d2152f874c8f99c42476f2923eb9127e2d4235 /www/js
parent265e3e201e0d61c2c5c504354dd582f6128ef1e8 (diff)
don't auto save profile if its empty
Diffstat (limited to 'www/js')
-rw-r--r--www/js/LoginCtrl.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/LoginCtrl.js b/www/js/LoginCtrl.js
index 2cf490e3..571c4d37 100644
--- a/www/js/LoginCtrl.js
+++ b/www/js/LoginCtrl.js
@@ -7,7 +7,8 @@ angular.module('zmApp.controllers').controller('zmApp.LoginCtrl', ['$scope', '$r
$scope.openMenu = function()
{
- saveItems(false);
+ if ($scope.loginData.serverName)
+ saveItems(false);
$ionicSideMenuDelegate.toggleLeft();
};