Show comments on the Edit Post screen in separate postbox

git-svn-id: https://develop.svn.wordpress.org/trunk@10480 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-02-02 03:41:19 +00:00
parent 618503f902
commit 7e830e17c4
5 changed files with 40 additions and 16 deletions
+3 -3
View File
@@ -133,7 +133,7 @@ var commentsBox, tagCloud;
this.st += num;
this.total = total;
$('.waiting').show();
$('#commentsdiv img.waiting').show();
data = {
'action' : 'get-comments',
@@ -147,8 +147,8 @@ var commentsBox, tagCloud;
$.post(ajaxurl, data,
function(r) {
r = wpAjax.parseAjaxResponse(r);
$('#commentstatusdiv .widefat').show();
$('.waiting').hide();
$('#commentsdiv .widefat').show();
$('#commentsdiv img.waiting').hide();
if ( 'object' == typeof r && r.responses[0] ) {
$('#the-comment-list').append( r.responses[0].data );