summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2015-11-14 14:17:25 -0500
committerArjun Roychowdhury <pliablepixels@gmail.com>2015-11-14 14:17:25 -0500
commitc652eda24f3caa446815194f32b78d049fa99076 (patch)
treeb12a1d8cbc39a8f3283d2202d14f87cc3a9e0acd /www/js/DataModel.js
parentc7e5dc8f53079e4e5f90c974b30c704b61f8d020 (diff)
Initial commits - #83
Former-commit-id: 2ee7fa15e0bd6964a5437a537aa4ebca5c0428c9
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js3
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);