diff options
| author | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-09 09:01:01 -0400 |
|---|---|---|
| committer | Pliable Pixels <pliablepixels@gmail.com> | 2018-05-09 09:01:01 -0400 |
| commit | 0a7ed079d04560ce6c246e29d6eb7e5db1e5af5f (patch) | |
| tree | 82222c0be45c661c04b83d541d3bd3de19a59744 | |
| parent | 2fb466e55e17aa73e6e655e6138ef429756bfc96 (diff) | |
take off website monitors for now - no good way to show #601
| -rwxr-xr-x | www/js/DataModel.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 8824d162..20731214 100755 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -1863,7 +1863,9 @@ angular.module('zmApp.controllers') //console.log("NVRDataModel: Invoking HTTP get to load monitors"); log((forceReload == 1) ? "getMonitors:Force reloading all monitors" : "getMonitors:Loading all monitors"); var apiurl = loginData.apiurl; - var myurl = apiurl + "/monitors.json"; + var myurl = apiurl + "/monitors"; + myurl += "/index/Type !=:WebSite.json"; + https://arjunrc.ddns.net:8889/zm/api/monitors/index/Type !=:WebSite.json //console.log ("API:"+myurl); // console.log ("gettign zms port"); @@ -1879,6 +1881,7 @@ angular.module('zmApp.controllers') //console.log("HTTP success got " + JSON.stringify(data.monitors)); monitors = data.monitors; + if ($rootScope.authSession == 'undefined') { log ("Now that we have monitors, lets get AuthKey..."); getAuthKey(monitors[0].Monitor.Id, (Math.floor((Math.random() * 999999) + 1)).toString()); |
