diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index 69040e109..4489cbef8 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -378,18 +378,12 @@ if (e.target.hash === "#comments") { $("#comments").show(); $("#edit").hide(); - $("#share").hide(); } else if (e.target.hash === "#edit") { $("#edit").show(); $("#comments").hide(); - $("#share").hide(); $("#post_tag_string").focus().selectEnd().height($("#post_tag_string")[0].scrollHeight); $("#related-tags-button").trigger("click"); $("#find-artist-button").trigger("click"); - } else { - $("#edit").hide(); - $("#comments").hide(); - $("#share").show(); } $("#post-sections li").removeClass("active"); diff --git a/app/views/posts/partials/show/_share.html.erb b/app/views/posts/partials/show/_share.html.erb index d52e7b7eb..21ef7e2b0 100644 --- a/app/views/posts/partials/show/_share.html.erb +++ b/app/views/posts/partials/show/_share.html.erb @@ -1,11 +1,10 @@ -
+
- - - + + + -