mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
Use adminTable to refill #the-extra-comment-list. See #14637
git-svn-id: https://develop.svn.wordpress.org/trunk@15509 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -259,11 +259,20 @@ wpList = {
|
||||
e = $(e);
|
||||
|
||||
var list = $(this), old = false, _s = { pos: 0, id: 0, oldId: null }, ba, ref, color;
|
||||
if ( 'string' == typeof s ) { s = { what: s }; }
|
||||
|
||||
if ( 'string' == typeof s )
|
||||
s = { what: s };
|
||||
|
||||
s = $.extend(_s, this.wpList.settings, s);
|
||||
if ( !e.size() || !s.what ) { return false; }
|
||||
if ( s.oldId ) { old = $('#' + s.what + '-' + s.oldId); }
|
||||
if ( s.id && ( s.id != s.oldId || !old || !old.size() ) ) { $('#' + s.what + '-' + s.id).remove(); }
|
||||
|
||||
if ( !e.size() || !s.what )
|
||||
return false;
|
||||
|
||||
if ( s.oldId )
|
||||
old = $('#' + s.what + '-' + s.oldId);
|
||||
|
||||
if ( s.id && ( s.id != s.oldId || !old || !old.size() ) )
|
||||
$('#' + s.what + '-' + s.id).remove();
|
||||
|
||||
if ( old && old.size() ) {
|
||||
old.before(e);
|
||||
|
||||
Reference in New Issue
Block a user