Revert "fixes #2175"

This reverts commit b99ba4a088.
This commit is contained in:
r888888888
2014-06-20 15:51:55 -07:00
parent 44913c1640
commit 2492148ecd
3 changed files with 10 additions and 6 deletions

View File

@@ -404,12 +404,18 @@
if (e.target.hash === "#comments") { if (e.target.hash === "#comments") {
$("#comments").show(); $("#comments").show();
$("#edit").hide(); $("#edit").hide();
$("#share").hide();
} else if (e.target.hash === "#edit") { } else if (e.target.hash === "#edit") {
$("#edit").show(); $("#edit").show();
$("#comments").hide(); $("#comments").hide();
$("#share").hide();
$("#post_tag_string").focus().selectEnd().height($("#post_tag_string")[0].scrollHeight); $("#post_tag_string").focus().selectEnd().height($("#post_tag_string")[0].scrollHeight);
$("#related-tags-button").trigger("click"); $("#related-tags-button").trigger("click");
$("#find-artist-button").trigger("click"); $("#find-artist-button").trigger("click");
} else {
$("#edit").hide();
$("#comments").hide();
$("#share").show();
} }
$("#post-sections li").removeClass("active"); $("#post-sections li").removeClass("active");

View File

@@ -1,10 +1,11 @@
<div style="height: 40px;"> <div style="height: 25em;">
<!-- AddThis Button BEGIN --> <!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style"> <div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_twitter"></a> <a class="addthis_button_twitter"></a>
<a class="addthis_button_facebook"></a> <a class="addthis_button_facebook"></a>
<a class="addthis_button_tumblr"></a> <a class="addthis_button_tumblr"></a>
<a class="addthis_button_compact"></a> <a class="addthis_button_compact"></a>
<a class="addthis_counter addthis_bubble_style"></a>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
var addthis_config = {"data_track_addressbar": false}; var addthis_config = {"data_track_addressbar": false};
@@ -17,3 +18,4 @@
<!-- AddThis Button END --> <!-- AddThis Button END -->
</div> </div>

View File

@@ -14,11 +14,6 @@
<%= render "posts/partials/show/information", :post => @post %> <%= render "posts/partials/show/information", :post => @post %>
</section> </section>
<section>
<h1>Share</h1>
<%= render "posts/partials/show/share", :post => @post %>
</section>
<% if CurrentUser.is_member? %> <% if CurrentUser.is_member? %>
<section id="post-options"> <section id="post-options">
<h1>Options</h1> <h1>Options</h1>
@@ -67,6 +62,7 @@
<% if CurrentUser.is_member? && @post.visible? %> <% if CurrentUser.is_member? && @post.visible? %>
<li><a href="#edit" id="post-edit-link">Edit</a></li> <li><a href="#edit" id="post-edit-link">Edit</a></li>
<% end %> <% end %>
<li><a href="#share">Share</a></li>
</menu> </menu>
<section id="comments"> <section id="comments">