@@ -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");
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
<div style="height: 40px;">
|
||||
<div style="height: 25em;">
|
||||
<!-- AddThis Button BEGIN -->
|
||||
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
|
||||
<a class="addthis_button_twitter"></a>
|
||||
<a class="addthis_button_facebook"></a>
|
||||
<a class="addthis_button_tumblr"></a>
|
||||
<a class="addthis_button_compact"></a>
|
||||
<a class="addthis_counter addthis_bubble_style"></a>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
var addthis_config = {"data_track_addressbar": false};
|
||||
@@ -17,3 +18,4 @@
|
||||
|
||||
<!-- AddThis Button END -->
|
||||
</div>
|
||||
|
||||
|
||||
@@ -14,11 +14,6 @@
|
||||
<%= render "posts/partials/show/information", :post => @post %>
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<h1>Share</h1>
|
||||
<%= render "posts/partials/show/share", :post => @post %>
|
||||
</section>
|
||||
|
||||
<% if CurrentUser.is_member? %>
|
||||
<section id="post-options">
|
||||
<h1>Options</h1>
|
||||
@@ -67,6 +62,7 @@
|
||||
<% if CurrentUser.is_member? && @post.visible? %>
|
||||
<li><a href="#edit" id="post-edit-link">Edit</a></li>
|
||||
<% end %>
|
||||
<li><a href="#share">Share</a></li>
|
||||
</menu>
|
||||
|
||||
<section id="comments">
|
||||
|
||||
Reference in New Issue
Block a user