[Debtags-commits] [svn] r2011 - web/trunk/cloud
Erich Schubert
erich at costa.debian.org
Thu Oct 5 19:51:02 UTC 2006
Author: erich
Date: Thu Oct 5 19:51:02 2006
New Revision: 2011
Modified:
web/trunk/cloud/index.html
Log:
fix unselection of tags
Modified: web/trunk/cloud/index.html
==============================================================================
--- web/trunk/cloud/index.html (original)
+++ web/trunk/cloud/index.html Thu Oct 5 19:51:02 2006
@@ -57,11 +57,13 @@
function unselectTag(event) {
var newtags = [];
+ var found = false;
for (var i=0; i<selectedtags.length; i++) {
if (selectedtags[i] != this.name) {
newtags.push(selectedtags);
- }
+ } else found = true;
}
+ if (!found) { window.alert("Tag not found: "+this.name); }
selectedtags = newtags;
update();
}
@@ -171,6 +173,7 @@
var a = document.createElement("a");
a.className="tag_sel";
a.appendChild(document.createTextNode(tags[i]));
+ dojo.event.connect(a,"onclick",obj,"unselectTag");
span.appendChild(a);
node.appendChild(span);
node.appendChild(document.createTextNode(" "));
More information about the Debtags-commits
mailing list