Update WP and plugins
This commit is contained in:
parent
10a4713229
commit
1fb77fc4ff
864 changed files with 101724 additions and 78262 deletions
|
|
@ -1,5 +1,9 @@
|
|||
/**
|
||||
* @output wp-admin/js/edit-comments.js
|
||||
*/
|
||||
|
||||
/* global adminCommentsL10n, thousandsSeparator, list_args, QTags, ajaxurl, wpAjax */
|
||||
var setCommentsList, theList, theExtraList, commentReply;
|
||||
/* global commentReply, theExtraList, theList, setCommentsList */
|
||||
|
||||
(function($) {
|
||||
var getCount, updateCount, updateCountText, updatePending, updateApproved,
|
||||
|
|
@ -184,7 +188,7 @@ var getCount, updateCount, updateCountText, updatePending, updateApproved,
|
|||
});
|
||||
};
|
||||
|
||||
setCommentsList = function() {
|
||||
window.setCommentsList = function() {
|
||||
var totalInput, perPageInput, pageInput, dimAfter, delBefore, updateTotalCount, delAfter, refillTheExtraList, diff,
|
||||
lastConfidentTime = 0;
|
||||
|
||||
|
|
@ -560,8 +564,8 @@ setCommentsList = function() {
|
|||
});
|
||||
};
|
||||
|
||||
theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );
|
||||
theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )
|
||||
window.theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } );
|
||||
window.theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } )
|
||||
.bind('wpListDelEnd', function(e, s){
|
||||
var wpListsData = $(s.target).attr('data-wp-lists'), id = s.element.replace(/[^0-9]+/g, '');
|
||||
|
||||
|
|
@ -570,7 +574,7 @@ setCommentsList = function() {
|
|||
});
|
||||
};
|
||||
|
||||
commentReply = {
|
||||
window.commentReply = {
|
||||
cid : '',
|
||||
act : '',
|
||||
originalContent : '',
|
||||
|
|
@ -632,15 +636,37 @@ commentReply = {
|
|||
},
|
||||
|
||||
close : function() {
|
||||
var c, replyrow = $('#replyrow');
|
||||
var commentRow = $(),
|
||||
replyRow = $( '#replyrow' );
|
||||
|
||||
// replyrow is not showing?
|
||||
if ( replyrow.parent().is('#com-reply') )
|
||||
if ( replyRow.parent().is( '#com-reply' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( this.cid && this.act == 'edit-comment' ) {
|
||||
c = $('#comment-' + this.cid);
|
||||
c.fadeIn(300, function(){ c.show(); }).css('backgroundColor', '');
|
||||
if ( this.cid ) {
|
||||
commentRow = $( '#comment-' + this.cid );
|
||||
}
|
||||
|
||||
/*
|
||||
* When closing the Quick Edit form, show the comment row and move focus
|
||||
* back to the Quick Edit button.
|
||||
*/
|
||||
if ( 'edit-comment' === this.act ) {
|
||||
commentRow.fadeIn( 300, function() {
|
||||
commentRow
|
||||
.show()
|
||||
.find( '.vim-q' )
|
||||
.attr( 'aria-expanded', 'false' )
|
||||
.focus();
|
||||
} ).css( 'backgroundColor', '' );
|
||||
}
|
||||
|
||||
// When closing the Reply form, move focus back to the Reply button.
|
||||
if ( 'replyto-comment' === this.act ) {
|
||||
commentRow.find( '.vim-r' )
|
||||
.attr( 'aria-expanded', 'false' )
|
||||
.focus();
|
||||
}
|
||||
|
||||
// reset the Quicktags buttons
|
||||
|
|
@ -649,14 +675,14 @@ commentReply = {
|
|||
|
||||
$('#add-new-comment').css('display', '');
|
||||
|
||||
replyrow.hide();
|
||||
$('#com-reply').append( replyrow );
|
||||
replyRow.hide();
|
||||
$( '#com-reply' ).append( replyRow );
|
||||
$('#replycontent').css('height', '').val('');
|
||||
$('#edithead input').val('');
|
||||
$( '.notice-error', replyrow )
|
||||
$( '.notice-error', replyRow )
|
||||
.addClass( 'hidden' )
|
||||
.find( '.error' ).empty();
|
||||
$( '.spinner', replyrow ).removeClass( 'is-active' );
|
||||
$( '.spinner', replyRow ).removeClass( 'is-active' );
|
||||
|
||||
this.cid = '';
|
||||
this.originalContent = '';
|
||||
|
|
@ -960,8 +986,7 @@ $(document).ready(function(){
|
|||
}
|
||||
|
||||
// Quick Edit and Reply have an inline comment editor.
|
||||
$( '#the-comment-list' ).on( 'click', '.comment-inline', function (e) {
|
||||
e.preventDefault();
|
||||
$( '#the-comment-list' ).on( 'click', '.comment-inline', function() {
|
||||
var $el = $( this ),
|
||||
action = 'replyto';
|
||||
|
||||
|
|
@ -969,6 +994,7 @@ $(document).ready(function(){
|
|||
action = $el.data( 'action' );
|
||||
}
|
||||
|
||||
$( this ).attr( 'aria-expanded', 'true' );
|
||||
commentReply.open( $el.data( 'commentId' ), $el.data( 'postId' ), action );
|
||||
} );
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue