Tagger: 20070927 1106

git-svn-id: file:///home/shish/svn/shimmie2/trunk@496 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
Artanis 2007-09-27 18:06:58 +00:00
parent bc42c756b1
commit e365e945a8

View File

@ -48,19 +48,24 @@ function toggleTag(tag) {
}
} else {
// remove tag
tags.value=tags.value.replace(" "+tag,"");
tags.value=" " + tags.value + " "; // catch first and last tag, too
tags.value=tags.value.replace(" "+tag+" "," ");
// remove extra spaces.
tags.value=tags.value.replace(" "," ");
// set indicator
if(tag_link) {
tag_link.style.fontWeight = "";
}
}
obj = byId("tagger_custTag");
obj.focus();
if(obj.value) {
obj.select();
}
}
function addTagById(id) {
tag = byId(id);
addTag(tag.value);
toggleTag(tag.value);
}
function setTagIndicators() {