2
0
Fork 0
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:
scossar 2017-12-10 13:41:45 -08:00
parent 307529a3f9
commit 6b6e0b6a3f
2 changed files with 3 additions and 1 deletions

View file

@ -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 );
}
}

View file

@ -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>';