fixes #1747
This commit is contained in:
@@ -3,15 +3,17 @@
|
||||
|
||||
Danbooru.WikiPage.initialize_all = function() {
|
||||
if ($("#c-wiki-pages").length) {
|
||||
$("#quick_search_title,#wiki_page_title").typeahead({
|
||||
name: "wiki_pages",
|
||||
remote: "/wiki_pages.json?search[title]=*%QUERY*",
|
||||
limit: 10,
|
||||
valueKey: "title",
|
||||
template: function(context) {
|
||||
return "<p>" + context.title.replace(/_/g, " ") + "</a></p>";
|
||||
}
|
||||
});
|
||||
if (Danbooru.meta("enable-tag-autocomplete") === "true") {
|
||||
$("#quick_search_title,#wiki_page_title").typeahead({
|
||||
name: "wiki_pages",
|
||||
remote: "/wiki_pages.json?search[title]=*%QUERY*",
|
||||
limit: 10,
|
||||
valueKey: "title",
|
||||
template: function(context) {
|
||||
return "<p>" + context.title.replace(/_/g, " ") + "</a></p>";
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user