[Debian-iot-packaging] [openzwave-controlpanel] 15/81: Fixed botched patch

Dara Adib daradib-guest at moszumanska.debian.org
Thu Dec 22 16:57:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

daradib-guest pushed a commit to branch debian/master
in repository openzwave-controlpanel.

commit e50cbafcdeebea76a1ed8c03540382fe3eb63ec3
Author: glsatz <glsatz at gmail.com>
Date:   Fri Aug 12 02:41:08 2011 +0000

    Fixed botched patch
---
 cp.js | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/cp.js b/cp.js
index 2284f3e..ed215ff 100644
--- a/cp.js
+++ b/cp.js
@@ -1138,13 +1138,9 @@ function CreateButton(i,j,vid)
 function CreateDivs(genre,divto,ind)
 {
   divto[ind]='<table border="0" cellpadding="1" cellspacing="0"><tbody>';
-  if (where.length > 0) {
-    var i;
-    var lastclass='';
-    for (i = 0; i < where[0].childNodes.length; i++) {
-      if (where[0].childNodes[i].firstChild == null)
-	continue;
-      if (where[0].childNodes[i].nodeType != 1)
+  if (nodes[ind].values != null)
+    for (var i = 0; i < nodes[ind].values.length; i++) {
+      if (nodes[ind].values[i].genre != genre)
 	continue;
       var lastclass='';
       var vid=nodes[ind].id+'-'+nodes[ind].values[i].cclass+'-'+genre+'-'+nodes[ind].values[i].type+'-'+nodes[ind].values[i].instance+'-'+nodes[ind].values[i].index;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-iot/openzwave-controlpanel.git



More information about the Debian-iot-packaging mailing list