autocomplete style consistency
This commit is contained in:
@@ -9,4 +9,3 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|||||||
@@ -3,12 +3,13 @@
|
|||||||
|
|
||||||
Danbooru.WikiPage.initialize_all = function() {
|
Danbooru.WikiPage.initialize_all = function() {
|
||||||
if ($("#c-wiki-pages").length) {
|
if ($("#c-wiki-pages").length) {
|
||||||
this.initialize_typeahead();
|
if (Danbooru.meta("enable-auto-complete") === "true") {
|
||||||
|
this.initialize_autocomplete();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Danbooru.WikiPage.initialize_typeahead = function() {
|
Danbooru.WikiPage.initialize_autocomplete = function() {
|
||||||
if (Danbooru.meta("enable-auto-complete") === "true") {
|
|
||||||
var $fields = $("#search_title,#quick_search_title");
|
var $fields = $("#search_title,#quick_search_title");
|
||||||
|
|
||||||
$fields.autocomplete({
|
$fields.autocomplete({
|
||||||
@@ -43,7 +44,6 @@
|
|||||||
$(field).data("uiAutocomplete")._renderItem = render_wiki_page;
|
$(field).data("uiAutocomplete")._renderItem = render_wiki_page;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
|
||||||
})();
|
})();
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user