diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index f948e38b..9f6b6451 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -27,6 +27,7 @@ angular.module('zmApp.controllers') var serverGroupList={}; var loginData = { + 'serverName':'', 'username': '', 'password': '', 'url': '', // This is the ZM portal path @@ -107,7 +108,7 @@ angular.module('zmApp.controllers') zmDebug ("DataModel/setLogin: writing " + JSON.stringify(newLogin)); $localstorage.setObject($rootScope.currentServerGroup, loginData); - serverGroupList[$rootScope.currentServerGroup]=loginData; + serverGroupList[loginData.serverName]=loginData; console.log (JSON.stringify(serverGroupList)); $localstorage.setObject("serverlist", serverGroupList); |
