1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 22:26:00 +00:00

add tag dropbox to tag editor

This commit is contained in:
Andrew Dolgov
2006-12-07 10:27:34 +01:00
parent 3fd7138fc2
commit d62a3b6349
4 changed files with 63 additions and 3 deletions

View File

@@ -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");
}
}