summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
Diffstat (limited to 'www/js/DataModel.js')
-rwxr-xr-xwww/js/DataModel.js5
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());