mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +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);
|
||||
|
||||
@@ -265,7 +265,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add( 'user-profile', "/wp-admin/js/user-profile$suffix.js", array('jquery'), '20100301' );
|
||||
$scripts->add_data( 'user-profile', 'group', 1 );
|
||||
|
||||
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20100418' );
|
||||
$scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'admin-table', 'jquery-ui-resizable', 'quicktags'), '20100818' );
|
||||
$scripts->add_data( 'admin-comments', 'group', 1 );
|
||||
$scripts->localize( 'admin-comments', 'adminCommentsL10n', array(
|
||||
'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']),
|
||||
|
||||
Reference in New Issue
Block a user