1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 12:30:00 +00:00

Bugfix typeahead on advanced serach page

This commit is contained in:
OzzieIsaacs 2017-08-14 20:30:23 +02:00
parent de112b0b05
commit a1538e12e8

View File

@ -3,6 +3,7 @@
*/
/* global Bloodhound, language, Modernizr, tinymce */
if ($("#description").length) {
tinymce.init({
selector: "#description",
branding: false,
@ -10,6 +11,7 @@ tinymce.init({
language
});
if (!Modernizr.inputtypes.date) {
$("#pubdate").datepicker({
format: "yyyy-mm-dd",
@ -26,7 +28,7 @@ if (!Modernizr.inputtypes.date) {
.removeClass("hidden");
}).trigger("change");
}
}
/*
Takes a prefix, query typeahead callback, Bloodhound typeahead adapter
and returns the completions it gets from the bloodhound engine prefixed.