From 84c63e7a435d5961a1fd3e2b9b0b65f70efeca83 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 7 Dec 2016 16:47:34 -0500 Subject: changes to send monitor list #391. Still hacky - needs cleanup --- www/js/DataModel.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'www/js/DataModel.js') diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 8786b56e..06d20e57 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -1380,6 +1380,17 @@ angular.module('zmApp.controllers') // I've wrapped this function in my own promise even though http returns a promise. //----------------------------------------------------------------------------- + // + + // returns a non promise version + // so if monitors is null, it will return null + // As of now, this is only used by EventServer.js to + // send the right list of monitors after registration + // token + getMonitorsNow: function() + { + return monitors; + }, getMonitors: function(forceReload) { -- cgit v1.2.3