summaryrefslogtreecommitdiff
path: root/www/js/DataModel.js
diff options
context:
space:
mode:
authorpliablepixels <pliablepixels@gmail.com>2016-05-05 13:18:14 -0400
committerpliablepixels <pliablepixels@gmail.com>2016-05-05 13:18:14 -0400
commit53b07bd33b9cc3fcd30cc7a7d71a1c57d0a6960c (patch)
treeb54762e959227f969854a8ffcbc9032ecb48e613 /www/js/DataModel.js
parent7708182b9fa22f30e076d14a9ce8637a1fa9fa23 (diff)
many other fixes for #234
Former-commit-id: 412018e40c05abe2bc299b13da9aeaa6d65b3eef
Diffstat (limited to 'www/js/DataModel.js')
-rw-r--r--www/js/DataModel.js12
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++) {