diff --git a/cps/static/js/edit_books.js b/cps/static/js/edit_books.js index f8d61e4e..14f38f63 100644 --- a/cps/static/js/edit_books.js +++ b/cps/static/js/edit_books.js @@ -162,7 +162,7 @@ var promiseLanguages = languages.initialize(); }); }); -$("form").on("change", "input.typeahead:selected", function(){ +$("#search").on("change input.typeahead:selected", function(){ var form = $("form").serialize(); $.getJSON( getPath()+"/get_matching_tags", form, function( data ) { $(".tags_click").each(function() { diff --git a/cps/templates/search_form.html b/cps/templates/search_form.html index e61195ec..6dbd17a8 100644 --- a/cps/templates/search_form.html +++ b/cps/templates/search_form.html @@ -1,7 +1,7 @@ {% extends "layout.html" %} {% block body %}