fixes #1785
This commit is contained in:
@@ -105,8 +105,14 @@
|
|||||||
var $dest = $("#related-tags");
|
var $dest = $("#related-tags");
|
||||||
$dest.empty();
|
$dest.empty();
|
||||||
|
|
||||||
$dest.append(this.build_html("recent", this.other_tags(Danbooru.Cookie.get("recent_tags_with_categories"))));
|
var recent_tags = Danbooru.Cookie.get("recent_tags_with_categories");
|
||||||
$dest.append(this.build_html("frequent", this.other_tags(Danbooru.Cookie.get("favorite_tags_with_categories"))));
|
var favorite_tags = Danbooru.Cookie.get("favorite_tags_with_categories");
|
||||||
|
if (recent_tags.length) {
|
||||||
|
$dest.append(this.build_html("recent", this.other_tags(recent_tags)));
|
||||||
|
}
|
||||||
|
if (favorite_tags.length) {
|
||||||
|
$dest.append(this.build_html("frequent", this.other_tags(favorite_tags)));
|
||||||
|
}
|
||||||
$dest.append(this.build_html(query, related_tags));
|
$dest.append(this.build_html(query, related_tags));
|
||||||
if (wiki_page_tags.length) {
|
if (wiki_page_tags.length) {
|
||||||
$dest.append(Danbooru.RelatedTag.build_html("wiki:" + query, wiki_page_tags));
|
$dest.append(Danbooru.RelatedTag.build_html("wiki:" + query, wiki_page_tags));
|
||||||
|
|||||||
Reference in New Issue
Block a user