]> git.wh0rd.org - tt-rss.git/blobdiff - functions.js
tag editor: autocomplete
[tt-rss.git] / functions.js
index 3fa9c69c003beb6ce11ba36e3354ab3a3f6cf71b..c6ef5fba99f9829c3a2d90fd2e43a6645f9e5317 100644 (file)
@@ -1470,6 +1470,15 @@ function infobox_callback() {
                                        box.style.display = "block";                            
                                }
                        }
+
+                       /* FIXME this needs to be moved out somewhere */
+
+                       if (document.getElementById("tags_choices")) {
+                               new Ajax.Autocompleter('tags_str', 'tags_choices',
+                                       "backend.php?op=rpc&subop=completeTags",
+                                       { tokens: ',', paramName: "search" });
+                       }
+
                        notify("");
                } catch (e) {
                        exception_error("infobox_callback", e);