diff --git a/app/assets/javascripts/posts.js b/app/assets/javascripts/posts.js index 8ebd8e601..2ea1e23a3 100644 --- a/app/assets/javascripts/posts.js +++ b/app/assets/javascripts/posts.js @@ -404,12 +404,18 @@ 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 21ef7e2b0..0cfb933a7 100644 --- a/app/views/posts/partials/show/_share.html.erb +++ b/app/views/posts/partials/show/_share.html.erb @@ -1,10 +1,11 @@ -
+
+