Bugfix for typeahead in search function and on edit books page

This commit is contained in:
OzzieIsaacs 2017-07-11 18:08:12 +02:00
parent a8aa1e7623
commit 5985342b79
2 changed files with 2 additions and 2 deletions

View File

@ -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() {

View File

@ -1,7 +1,7 @@
{% extends "layout.html" %}
{% block body %}
<div class="col-sm-8">
<form role="form" action="{{ url_for('advanced_search') }}" method="GET">
<form role="form" id="search" action="{{ url_for('advanced_search') }}" method="GET">
<div class="form-group">
<label for="book_title">{{_('Book Title')}}</label>
<input type="text" class="form-control" name="book_title" id="book_title" value="">