'action' : 'get-comments',
'mode' : 'single',
'_ajax_nonce' : $('#add_comment_nonce').val(),
- 'post_ID' : $('#post_ID').val(),
+ 'p' : $('#post_ID').val(),
'start' : st,
- 'num' : num
+ 'number' : num
};
$.post(ajaxurl, data,
theList = theExtraList = null;
$("a[className*=':']").unbind();
- setCommentsList();
if ( commentsBox.st > commentsBox.total )
$('#show-comments').hide();
}
function updateText() {
- var attemptedDate, originalDate, currentDate, publishOn, page = 'page' == pagenow || 'page-new' == pagenow,
- postStatus = $('#post_status'), optPublish = $('option[value=publish]', postStatus), aa = $('#aa').val(),
+ var attemptedDate, originalDate, currentDate, publishOn, postStatus = $('#post_status'),
+ optPublish = $('option[value=publish]', postStatus), aa = $('#aa').val(),
mm = $('#mm').val(), jj = $('#jj').val(), hh = $('#hh').val(), mn = $('#mn').val();
attemptedDate = new Date( aa, mm - 1, jj, hh, mn );
$('#publish').val( postL10n.publish );
} else {
publishOn = postL10n.publishOnPast;
- if ( page )
- $('#publish').val( postL10n.updatePage );
- else
- $('#publish').val( postL10n.updatePost );
+ $('#publish').val( postL10n.update );
}
if ( originalDate.toUTCString() == attemptedDate.toUTCString() ) { //hack
$('#timestamp').html(stamp);
}
if ( $('input:radio:checked', '#post-visibility-select').val() == 'private' ) {
- if ( page )
- $('#publish').val( postL10n.updatePage );
- else
- $('#publish').val( postL10n.updatePost );
+ $('#publish').val( postL10n.update );
if ( optPublish.length == 0 ) {
postStatus.append('<option value="publish">' + postL10n.privatelyPublished + '</option>');
} else {