diff options
| author | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-06 16:57:52 -0400 |
|---|---|---|
| committer | Arjun Roychowdhury <pliablepixels@gmail.com> | 2015-10-06 16:57:52 -0400 |
| commit | 40fc4fc94ee0523aea1a36f8f6cf3acb4af0b599 (patch) | |
| tree | 0ccc6de3ed65e87387d7e89266da932a823cc006 /www/js/DataModel.js | |
| parent | dd8d072fdae253c611e8ca3ff9ed8d92f0d4483a (diff) | |
support for Event Notification
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index b0fc405b..24a96776 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -25,6 +25,7 @@ angular.module('zmApp.controllers').service('ZMDataModel', 'password': '', 'url': '', // This is the ZM portal path 'apiurl': '', // This is the API path + 'eventServer':'', //experimental Event server address 'maxMontage': "10", //total # of monitors to display in montage 'streamingurl': "", 'maxFPS': "3", // image streaming FPS @@ -84,7 +85,8 @@ angular.module('zmApp.controllers').service('ZMDataModel', //------------------------------------------------------------- // used by various controllers to log messages to file //------------------------------------------------------------- - + + zmLog: function (val,type) { var logtype = 'info'; if (type != undefined) @@ -171,6 +173,12 @@ angular.module('zmApp.controllers').service('ZMDataModel', window.localStorage.getItem("url"); } + + if (window.localStorage.getItem("eventServer") != undefined) { + loginData.eventServer = + window.localStorage.getItem("eventServer"); + + } if (window.localStorage.getItem("apiurl") != undefined) { loginData.apiurl = @@ -313,6 +321,7 @@ angular.module('zmApp.controllers').service('ZMDataModel', window.localStorage.setItem("url", loginData.url); window.localStorage.setItem("apiurl", loginData.apiurl); window.localStorage.setItem("streamingurl", loginData.streamingurl); + window.localStorage.setItem("eventServer", loginData.eventServer); window.localStorage.setItem("useSSL", loginData.useSSL?"1":"0"); window.localStorage.setItem("usePin", loginData.usePin?"1":"0"); window.localStorage.setItem("pinCode", loginData.pinCode); |
