diff options
Diffstat (limited to 'www/js/DataModel.js')
| -rw-r--r-- | www/js/DataModel.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/www/js/DataModel.js b/www/js/DataModel.js index 72f5e36b..53a79ecd 100644 --- a/www/js/DataModel.js +++ b/www/js/DataModel.js @@ -1386,6 +1386,18 @@ angular.module('zmApp.controllers') return "(Unknown)"; }, + getMonitorObject: function (id) { + var idnum = parseInt(id); + for (var i = 0; i < monitors.length; i++) { + if (parseInt(monitors[i].Monitor.Id) == idnum) { + // console.log ("Matched, exiting getMonitorname"); + return monitors[i]; + } + + } + return "(Unknown)"; + }, + getImageMode: function (id) { var idnum = parseInt(id); for (var i = 0; i < monitors.length; i++) { |
