summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js10
1 files changed, 9 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js
index c438e06a..a0ff20d9 100644
--- a/www/js/DataModel.js
+++ b/www/js/DataModel.js
@@ -66,6 +66,8 @@ angular.module('zmApp.controllers')
};
+ var defaultLoginData = angular.copy(loginData);
+
var configParams = {
@@ -188,7 +190,13 @@ angular.module('zmApp.controllers')
// the ZM authors fix this and streamline the access of images
// from APIs, I don't have an option
- // FIXME: Move all of this into a neat JSON object
+
+ // used when an empty server profile is created
+ getDefaultLoginObject: function()
+ {
+ return defaultLoginData;
+ },
+
init: function () {
// console.log("****** DATAMODEL INIT SERVICE CALLED ********");