summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorArjun Roychowdhury <pliablepixels@gmail.com>2016-01-13 19:30:14 +0530
committerArjun Roychowdhury <pliablepixels@gmail.com>2016-01-13 19:30:14 +0530
commit73f08ac8d8f4d2995cac1eb5f58e9879c36f305f (patch)
tree017c14a516317389b8840f07af9860aab9f914b1 /www/js/DataModel.js
parent9492a9d0fe53708ff39ed7c314a955591a2db888 (diff)
cleaned up server add interface - created an add button
Former-commit-id: 95e087a6a24c9a54bcfd2f81a0884877d7ec322d
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 ********");