[Debtags-commits] [svn] r1945 - web/trunk

Enrico Zini enrico at costa.debian.org
Sat Sep 23 11:38:52 UTC 2006


Author: enrico
Date: Sat Sep 23 11:38:51 2006
New Revision: 1945

Modified:
   web/trunk/ssearch.html
Log:
Patch from madduck to hide empty tag box

Modified: web/trunk/ssearch.html
==============================================================================
--- web/trunk/ssearch.html	(original)
+++ web/trunk/ssearch.html	Sat Sep 23 11:38:51 2006
@@ -139,9 +139,18 @@
 		b += "</ul></p>\n";
 	}
 
-	// TODO: regenerate the HTML bit with the tags
-	var node = document.getElementById("tags");
-	node.innerHTML = b;
+  if (b.length > 0) {
+    // TODO: regenerate the HTML bit with the tags
+    var node = document.getElementById("tags");
+    node.innerHTML = b;
+    node.visibility = 'visible';
+    if (document.layers) node.visibility = 'show';
+    else if (document.all) node.style.visibility = 'visible';
+  }
+  else {
+    if (document.layers) node.visibility = 'hide';
+    else if (document.all) node.style.visibility = 'hidden';
+  }
 }
 
 function updateResults()



More information about the Debtags-commits mailing list