From b99ba4a088b504baca0387b0e03d629beab2697f Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 3 Jun 2014 14:22:04 -0700 Subject: [PATCH] fixes #2175 --- app/assets/javascripts/posts.js | 6 ------ app/views/posts/partials/show/_share.html.erb | 10 ++++------ app/views/posts/show.html.erb | 6 +++++- 3 files changed, 9 insertions(+), 13 deletions(-) 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 @@ -
+
- - - + + + -