posts/show: fix flickering recommended tab.
This commit is contained in:
@@ -466,11 +466,6 @@ Post.initialize_post_sections = function() {
|
||||
$(e.target).parent("li").addClass("active");
|
||||
e.preventDefault();
|
||||
});
|
||||
|
||||
$("#notes").hide();
|
||||
$("#edit").hide();
|
||||
$("#recommended").hide();
|
||||
$("#post-sections li:first-child").addClass("active");
|
||||
}
|
||||
|
||||
Post.resize_ugoira_controls = function() {
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
<% end %>
|
||||
|
||||
<menu id="post-sections">
|
||||
<li><a href="#comments">Comments</a></li>
|
||||
<li class="active"><a href="#comments">Comments</a></li>
|
||||
|
||||
<% if RecommenderService.available_for_post?(@post) %>
|
||||
<li><a href="#recommended">Recommended</a></li>
|
||||
@@ -103,7 +103,7 @@
|
||||
</menu>
|
||||
|
||||
<% if RecommenderService.available_for_post?(@post) %>
|
||||
<section id="recommended">
|
||||
<section id="recommended" style="display: none;">
|
||||
<p><em>Loading...</em></p>
|
||||
</section>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user