Commit cb18fafe5d3b635e84a4f3c796312db4372150d5
1 parent
bc795feb
Exists in
master
layout fix
Showing
1 changed file
with
16 additions
and
16 deletions
Show diff stats
public/comment_paragraph_macro.js
@@ -231,20 +231,20 @@ jQuery(document).ready(function($) { | @@ -231,20 +231,20 @@ jQuery(document).ready(function($) { | ||
231 | 231 | ||
232 | //Seens that this code is not beeing used anymore | 232 | //Seens that this code is not beeing used anymore |
233 | 233 | ||
234 | -//function toggleParagraph(paragraph) { | ||
235 | -// var div = jQuery('div.comments_list_toggle_paragraph_'+paragraph); | ||
236 | -// var visible = div.is(':visible'); | ||
237 | -// if(!visible) | ||
238 | -// jQuery('div.comment-paragraph-loading-' + paragraph).addClass('comment-button-loading'); | ||
239 | -// div.toggle('fast'); | ||
240 | -// return visible; | ||
241 | -//} | ||
242 | - | ||
243 | -//function loadCompleted(paragraph) { | ||
244 | -// jQuery('div.comment-paragraph-loading-'+paragraph).removeClass('comment-button-loading') | ||
245 | -// if(comment_paragraph_anchor) { | ||
246 | -// jQuery.scrollTo(jQuery(comment_paragraph_anchor)); | ||
247 | -// comment_paragraph_anchor = null; | ||
248 | -// } | ||
249 | -//} | 234 | +function toggleParagraph(paragraph) { |
235 | + var div = jQuery('div.comments_list_toggle_paragraph_'+paragraph); | ||
236 | + var visible = div.is(':visible'); | ||
237 | + if(!visible) | ||
238 | + jQuery('div.comment-paragraph-loading-' + paragraph).addClass('comment-button-loading'); | ||
239 | + div.toggle('fast'); | ||
240 | + return visible; | ||
241 | +} | ||
242 | + | ||
243 | +function loadCompleted(paragraph) { | ||
244 | + jQuery('div.comment-paragraph-loading-'+paragraph).removeClass('comment-button-loading') | ||
245 | + if(comment_paragraph_anchor) { | ||
246 | + jQuery.scrollTo(jQuery(comment_paragraph_anchor)); | ||
247 | + comment_paragraph_anchor = null; | ||
248 | + } | ||
249 | +} | ||
250 | 250 |