Bugfix for typeahead in search function and on edit books page
This commit is contained in:
parent
a8aa1e7623
commit
5985342b79
|
@ -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();
|
var form = $("form").serialize();
|
||||||
$.getJSON( getPath()+"/get_matching_tags", form, function( data ) {
|
$.getJSON( getPath()+"/get_matching_tags", form, function( data ) {
|
||||||
$(".tags_click").each(function() {
|
$(".tags_click").each(function() {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "layout.html" %}
|
{% extends "layout.html" %}
|
||||||
{% block body %}
|
{% block body %}
|
||||||
<div class="col-sm-8">
|
<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">
|
<div class="form-group">
|
||||||
<label for="book_title">{{_('Book Title')}}</label>
|
<label for="book_title">{{_('Book Title')}}</label>
|
||||||
<input type="text" class="form-control" name="book_title" id="book_title" value="">
|
<input type="text" class="form-control" name="book_title" id="book_title" value="">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user