This commit is contained in:
BrokenEagle
2017-11-14 07:38:40 -08:00
parent 5f39a8b4b2
commit 63773fed6b
2 changed files with 8 additions and 2 deletions

View File

@@ -12,7 +12,13 @@
Danbooru.RelatedTag.initialize_buttons = function() {
this.common_bind("#related-tags-button", "");
$.each(JSON.parse(Danbooru.meta("related-tag-button-list")), function(i,category) {
var related_buttons;
try {
related_buttons = JSON.parse(Danbooru.meta("related-tag-button-list"));
} catch (e) {
related_buttons = [];
}
$.each(related_buttons, function(i,category) {
Danbooru.RelatedTag.common_bind("#related-" + category + "-button", category);
});
$("#find-artist-button").click(Danbooru.RelatedTag.find_artist);

View File

@@ -1,5 +1,5 @@
<div id="c-uploads">
<div id="a-new">
<div id="a-batch">
<h1>Batch Upload</h1>
<section>