mirror of
https://github.com/discourse/wp-discourse.git
synced 2025-10-03 08:59:21 +08:00
Add comments-loading classes
This commit is contained in:
parent
307529a3f9
commit
6b6e0b6a3f
2 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,8 @@
|
|||
{
|
||||
url: commentsURL + '?post_id=' + postId,
|
||||
success: function (response) {
|
||||
$commentArea.removeClass( 'wpdc-comments-loading' );
|
||||
$commentArea.addClass( 'wpdc-comments-loaded' );
|
||||
$commentArea.html( response );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,4 +7,4 @@
|
|||
|
||||
global $post;
|
||||
|
||||
echo '<div id="wpdc-comments" data-post-id="' . esc_attr( $post->ID ) . '"></div>';
|
||||
echo '<div class="wpdc-comments-loading" id="wpdc-comments" data-post-id="' . esc_attr( $post->ID ) . '"></div>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue