From 5985342b79e4af1c509db9a9cb7a7ab6a7d1fa27 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Tue, 11 Jul 2017 18:08:12 +0200 Subject: [PATCH] Bugfix for typeahead in search function and on edit books page --- cps/static/js/edit_books.js | 2 +- cps/templates/search_form.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 %}
-
+