Commit 802eb628 authored by Jonathan Rehm's avatar Jonathan Rehm

Split event listener and selector string

Event and selectors appear to have been accidentally combined. The result is that typing in any input triggers a call to the `/get_matching_tags` route. We can probably limit the selector farther to only fire when `#tags` is typed into.
parent 74e93e1c
......@@ -162,7 +162,7 @@ var promiseLanguages = languages.initialize();
});
});
$("form").on("change input typeahead:selected", function(data){
$("form").on("change", "input.typeahead:selected", function(){
var form = $("form").serialize();
$.getJSON( getPath()+"/get_matching_tags", form, function( data ) {
$(".tags_click").each(function() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment