Commit 5985342b authored by OzzieIsaacs's avatar OzzieIsaacs

Bugfix for typeahead in search function and on edit books page

parent a8aa1e76
......@@ -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() {
......
{% 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="">
......
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