related tags: remove dead #artist-tags-container code.

Dead since 78900c4d3.
This commit is contained in:
evazion
2018-09-03 19:13:09 -05:00
parent 316acead16
commit 1bfe763182
2 changed files with 0 additions and 11 deletions

View File

@@ -6,7 +6,6 @@ let RelatedTag = {};
RelatedTag.initialize_all = function() {
if ($("#c-posts #a-show").length || $("#c-uploads #a-new").length) {
this.initialize_buttons();
$("#artist-tags-container").hide();
$("#upload_tag_string,#post_tag_string").keyup(RelatedTag.update_selected);
$("body").on("click", "#artist-related-tags-column a.del", RelatedTag.disable_artist_url)
}
@@ -35,7 +34,6 @@ RelatedTag.common_bind = function(button_name, category) {
"query": RelatedTag.current_tag(),
"category": category
}, RelatedTag.process_response);
$("#artist-tags-container").hide();
e.preventDefault();
});
}
@@ -277,9 +275,6 @@ RelatedTag.toggle_tag = function(e) {
$field.val($field.val().trim().replace(/ +/g, " ") + " ");
RelatedTag.update_selected();
if (RelatedTag.recent_artist && $("#artist-tags-container").css("display") === "block") {
RelatedTag.process_artist(RelatedTag.recent_artist);
}
// The timeout is needed on Chrome since it will clobber the field attribute otherwise
setTimeout(function () { $field.prop('selectionStart', $field.val().length);}, 100);

View File

@@ -119,12 +119,6 @@
<%= submit_tag "Submit", :id => "submit-button", :class => "large ui-button ui-widget ui-corner-all gradient", data: {disable_with: false} %>
</div>
<div id="artist-tags-container">
<h1>Artist</h1>
<div id="artist-tags" class="related-tags">
</div>
</div>
<div id="related-tags-container">
<h1>Related Tags <a href="#" id="toggle-related-tags-link" style="display: none;">&laquo;</a></h1>
<div id="related-tags" class="related-tags">