Only make the subject toggle, patch by Chris Lamb
authorJoerg Jaspert <joerg@debian.org>
Sat, 3 Sep 2016 10:05:47 +0000 (12:05 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sat, 3 Sep 2016 10:05:47 +0000 (12:05 +0200)
.dotfiles/net:debian.org/host:franck/lib/output.rb

index 861a30f..d76d1b8 100644 (file)
@@ -36,7 +36,7 @@ class Removal_html
                    }
            }
            function togglePkg(o, hidingClass){
-                   var children = o.getElementsByTagName("*");
+                   var children = o.parentNode.getElementsByTagName("*");
                    for (var i = 0; i < children.length; i++) {
                            if(! children[i].hasAttribute("class"))
                                    continue;
@@ -188,9 +188,9 @@ class Removal_html
     end # if
 
     if row % 2 != 0
-      "<div class=\"package odd #{css}\"" + toggle + ">"
+      "<div class=\"package odd #{css}\">"
     else
-      "<div class=\"package even #{css}\"" + toggle + ">"
+      "<div class=\"package even #{css}\">"
     end
   end
 
@@ -208,9 +208,9 @@ class Removal_html
 
   def subject(text, suite, package, bugnr=0)
     if suite == "unstable"
-      "<div class=\"subject\">#{package}: #{text}</div>"
+      "<div class=\"subject\"" + toggle + ">#{package}: #{text}</div>"
     else
-      "<div class=\"subject\">#{package}/#{suite}: #{text}</div>"
+      "<div class=\"subject\"" + toggle + ">#{package}/#{suite}: #{text}</div>"
     end
   end