diff --git a/app/javascript/packs/application.js b/app/javascript/packs/application.js index b0332e120..8ae221bf9 100644 --- a/app/javascript/packs/application.js +++ b/app/javascript/packs/application.js @@ -38,7 +38,7 @@ export { default as Note } from '../src/javascripts/notes.js'; export { default as Post } from '../src/javascripts/posts.js.erb'; export { default as PostModeMenu } from '../src/javascripts/post_mode_menu.js'; export { default as PostTooltip } from '../src/javascripts/post_tooltips.js'; -export { default as RelatedTag } from '../src/javascripts/related_tag.js.erb'; +export { default as RelatedTag } from '../src/javascripts/related_tag.js'; export { default as Shortcuts } from '../src/javascripts/shortcuts.js'; export { default as Upload } from '../src/javascripts/uploads.js'; export { default as Utility } from '../src/javascripts/utility.js'; diff --git a/app/javascript/src/javascripts/related_tag.js.erb b/app/javascript/src/javascripts/related_tag.js similarity index 98% rename from app/javascript/src/javascripts/related_tag.js.erb rename to app/javascript/src/javascripts/related_tag.js index 95a22694e..1076c90f9 100644 --- a/app/javascript/src/javascripts/related_tag.js.erb +++ b/app/javascript/src/javascripts/related_tag.js @@ -89,7 +89,7 @@ RelatedTag.current_tag = function() { RelatedTag.update_selected = function(e) { var current_tags = $("#upload_tag_string,#post_tag_string").val().toLowerCase().match(/\S+/g) || []; - var $all_tags = $("#related-tags a"); + var $all_tags = $(".related-tags a.search-tag"); $all_tags.removeClass("selected"); $all_tags.each(function(i, tag) { diff --git a/app/views/artist_urls/update.js.erb b/app/views/artist_urls/update.js similarity index 100% rename from app/views/artist_urls/update.js.erb rename to app/views/artist_urls/update.js diff --git a/app/views/related_tags/_buttons.html.erb b/app/views/related_tags/_buttons.html.erb index badddebaa..e2b4667f9 100644 --- a/app/views/related_tags/_buttons.html.erb +++ b/app/views/related_tags/_buttons.html.erb @@ -1,4 +1,4 @@ -<%= button_tag "Related tags", type: :button, id: "related-tags-button", class: "related-tags-button ui-button ui-widget ui-corner-all sub gradient" %> +<%= button_tag "Related tags", type: :button, class: "related-tags-button ui-button ui-widget ui-corner-all sub gradient" %> <% TagCategory.related_button_list.each do |category| %> <%= button_tag TagCategory.related_button_mapping[category], type: :button, "data-category": category, class: "related-tags-button ui-button ui-widget ui-corner-all sub gradient" %> diff --git a/app/views/related_tags/_container.html.erb b/app/views/related_tags/_container.html.erb index 61c2cc80c..0add7c117 100644 --- a/app/views/related_tags/_container.html.erb +++ b/app/views/related_tags/_container.html.erb @@ -5,7 +5,7 @@ « -