From 53b07bd33b9cc3fcd30cc7a7d71a1c57d0a6960c Mon Sep 17 00:00:00 2001 From: pliablepixels Date: Thu, 5 May 2016 13:18:14 -0400 Subject: many other fixes for #234 Former-commit-id: 412018e40c05abe2bc299b13da9aeaa6d65b3eef --- www/js/DataModel.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'www/js/DataModel.js') 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++) { -- cgit v1.2.3