Commit d8189cdb1e6b4f9d392a00e03d79effd87aecc56
1 parent
03f3dca6
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
layout fix
Showing
1 changed file
with
16 additions
and
16 deletions
Show diff stats
plugins/comment_paragraph/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 |