]> git.pld-linux.org Git - packages/domoticz.git/blame - domoticz-cp-js.patch
- stop using not existant macro
[packages/domoticz.git] / domoticz-cp-js.patch
CommitLineData
9ee4483e
AM
1--- a/www/ozwcp/cp.js 2017-07-30 05:19:41.000000000 -0500
2+++ b/www/ozwcp/cp.js 2018-02-22 17:14:52.185486298 -0600
3@@ -241,7 +241,13 @@
4 var current = values[j].getAttribute('current');
5 nodes[id].values[k].value = new Array();
6 for (var l = 0; l < items.length; l++) {
7- nodes[id].values[k].value[l] = {item: items[l].firstChild.nodeValue, selected: (current == items[l].firstChild.nodeValue)};
8+ var firstChild = items[l].firstChild;
9+ var nodeValue;
10+ if (firstChild == null)
11+ nodeValue = '';
12+ else
13+ nodeValue = firstChild.nodeValue;
14+ nodes[id].values[k].value[l] = {item: nodeValue, selected: (current == nodeValue)};
15 }
16 } else if (values[j].firstChild != null)
17 nodes[id].values[k].value = values[j].firstChild.nodeValue;
This page took 0.088452 seconds and 4 git commands to generate.