diff options
| author | pliablepixels <pliablepixels@gmail.com> | 2016-05-05 13:18:14 -0400 |
|---|---|---|
| committer | pliablepixels <pliablepixels@gmail.com> | 2016-05-05 13:18:14 -0400 |
| commit | 53b07bd33b9cc3fcd30cc7a7d71a1c57d0a6960c (patch) | |
| tree | b54762e959227f969854a8ffcbc9032ecb48e613 /www/js/DataModel.js | |
| parent | 7708182b9fa22f30e076d14a9ce8637a1fa9fa23 (diff) | |
many other fixes for #234
Former-commit-id: 412018e40c05abe2bc299b13da9aeaa6d65b3eef
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++) { |
