fixes #1747
This commit is contained in:
@@ -4,7 +4,10 @@
|
||||
Danbooru.Artist.initialize_all = function() {
|
||||
if ($("#c-artists").length) {
|
||||
Danbooru.Artist.initialize_check_name_link();
|
||||
Danbooru.Artist.initialize_typeahead();
|
||||
|
||||
if (Danbooru.meta("enable-auto-complete") === "true") {
|
||||
Danbooru.Artist.initialize_typeahead();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,10 @@
|
||||
|
||||
Danbooru.Post.initialize_all = function() {
|
||||
this.initialize_post_previews();
|
||||
this.initialize_tag_autocomplete();
|
||||
|
||||
if (Danbooru.meta("enable-tag-autocomplete") === "true") {
|
||||
this.initialize_tag_autocomplete();
|
||||
}
|
||||
|
||||
if ($("#c-posts").length) {
|
||||
if (Danbooru.meta("enable-js-navigation") === "true") {
|
||||
|
||||
@@ -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