summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-12-07 10:27:34 +0100
committerAndrew Dolgov <[email protected]>2006-12-07 10:27:34 +0100
commitd62a3b6349e5bd5c7bf860e5c5a8a27b7aa1d89b (patch)
tree794d30c1e388c9fbbc9f72c90fb298d7ba81dd27 /viewfeed.js
parent3fd7138fc22de45e4be31568e8ff04883d221329 (diff)
add tag dropbox to tag editor
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js
index 5f338e46e..d89cac347 100644
--- a/viewfeed.js
+++ b/viewfeed.js
@@ -489,3 +489,28 @@ function editTagsSave() {
xmlhttp_rpc.send(null);
}
+
+function editTagsInsert() {
+ try {
+
+ var form = document.forms["tag_edit_form"];
+
+ var found_tags = form.found_tags;
+ var tags_str = form.tags_str;
+
+ var tag = found_tags[found_tags.selectedIndex].value;
+
+ if (tags_str.value.length > 0 &&
+ tags_str.value.lastIndexOf(", ") != tags_str.value.length - 2) {
+
+ tags_str.value = tags_str.value + ", ";
+ }
+
+ tags_str.value = tags_str.value + tag + ", ";
+
+ found_tags.selectedIndex = 0;
+
+ } catch (e) {
+ exception_error(e, "editTagsInsert");
+ }
+}