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.target).parent("li").addClass("active");
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#notes").hide();
|
|
||||||
$("#edit").hide();
|
|
||||||
$("#recommended").hide();
|
|
||||||
$("#post-sections li:first-child").addClass("active");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Post.resize_ugoira_controls = function() {
|
Post.resize_ugoira_controls = function() {
|
||||||
|
|||||||
@@ -89,7 +89,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<menu id="post-sections">
|
<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) %>
|
<% if RecommenderService.available_for_post?(@post) %>
|
||||||
<li><a href="#recommended">Recommended</a></li>
|
<li><a href="#recommended">Recommended</a></li>
|
||||||
@@ -103,7 +103,7 @@
|
|||||||
</menu>
|
</menu>
|
||||||
|
|
||||||
<% if RecommenderService.available_for_post?(@post) %>
|
<% if RecommenderService.available_for_post?(@post) %>
|
||||||
<section id="recommended">
|
<section id="recommended" style="display: none;">
|
||||||
<p><em>Loading...</em></p>
|
<p><em>Loading...</em></p>
|
||||||
</section>
|
</section>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user