From 3ecee918618d99244b191637aa5b738eacdb0bff Mon Sep 17 00:00:00 2001 From: evazion Date: Fri, 26 May 2017 12:22:13 -0500 Subject: [PATCH] Fix #3061: Add "General" button for related tags on new/edit posts. --- app/assets/javascripts/related_tag.js | 1 + app/views/posts/partials/show/_edit.html.erb | 1 + app/views/uploads/new.html.erb | 1 + 3 files changed, 3 insertions(+) diff --git a/app/assets/javascripts/related_tag.js b/app/assets/javascripts/related_tag.js index 12ed65837..58d2eb878 100644 --- a/app/assets/javascripts/related_tag.js +++ b/app/assets/javascripts/related_tag.js @@ -12,6 +12,7 @@ Danbooru.RelatedTag.initialize_buttons = function() { this.common_bind("#related-tags-button", ""); + this.common_bind("#related-general-button", "general"); this.common_bind("#related-artists-button", "artist"); this.common_bind("#related-characters-button", "character"); this.common_bind("#related-copyrights-button", "copyright"); diff --git a/app/views/posts/partials/show/_edit.html.erb b/app/views/posts/partials/show/_edit.html.erb index 57a82a701..6a55411a9 100644 --- a/app/views/posts/partials/show/_edit.html.erb +++ b/app/views/posts/partials/show/_edit.html.erb @@ -84,6 +84,7 @@ <%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %> + <%= button_tag "General", :id => "related-general-button", :type => "button" %> <%= button_tag "Artists", :id => "related-artists-button", :type => "button" %> <%= button_tag "Characters", :id => "related-characters-button", :type => "button" %> <%= button_tag "Copyrights", :id => "related-copyrights-button", :type => "button" %> diff --git a/app/views/uploads/new.html.erb b/app/views/uploads/new.html.erb index a8139028d..a24c6ab0e 100644 --- a/app/views/uploads/new.html.erb +++ b/app/views/uploads/new.html.erb @@ -109,6 +109,7 @@ <%= button_tag "Related tags", :id => "related-tags-button", :type => "button" %> + <%= button_tag "General", :id => "related-general-button", :type => "button" %> <%= button_tag "Artists", :id => "related-artists-button", :type => "button" %> <%= button_tag "Characters", :id => "related-characters-button", :type => "button" %> <%= button_tag "Copyrights", :id => "related-copyrights-button", :type => "button" %>