[Debtags-commits] [svn] r2208 - web/trunk
Enrico Zini
enrico at alioth.debian.org
Sun Dec 3 21:34:32 CET 2006
Author: enrico
Date: Sun Dec 3 21:34:32 2006
New Revision: 2208
Modified:
web/trunk/ssearch.html
Log:
Added reset button
Modified: web/trunk/ssearch.html
==============================================================================
--- web/trunk/ssearch.html (original)
+++ web/trunk/ssearch.html Sun Dec 3 21:34:32 2006
@@ -19,6 +19,19 @@
var pkgs = new Packages();
var baseSearches = new Array();
+function restart()
+{
+ wanted = new Tagset();
+ unwanted = new Tagset();
+ available = new Array();
+ coll = new Collection();
+ pkgs = new Packages();
+ baseSearches = new Array();
+ document.search.keys.valiue = "";
+ updateResults();
+ updateTagBox();
+}
+
function needsPackageData()
{
for (var i in baseSearches)
@@ -145,15 +158,11 @@
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';
+ render("tags", b);
+ setVisible("tags", true);
}
else {
- if (document.layers) node.visibility = 'hide';
- else if (document.all) node.style.visibility = 'hidden';
+ setVisible("tags", false);
}
}
@@ -212,6 +221,7 @@
<div id="search">
Search: <input type="text" name="keys" value='' onChange="updateAvailable(this)" />
<input type="button" name="submit" value="Search" onClick="updateAvailable(this.form.keys)" />
+ <input type="button" name="reset" value="Reset" onClick="restart()" />
</div>
<div id="tags">
More information about the Debtags-commits
mailing list