Remove unneeded .siblings() from widgets.js, props aaroncampbell, fixes #18582
git-svn-id: http://svn.automattic.com/wordpress/trunk@18634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e4ed63fc6f
commit
21dc8794bc
|
@ -19,7 +19,7 @@ wpWidgets = {
|
|||
});
|
||||
|
||||
$('#widgets-left').children('.widgets-holder-wrap').children('.sidebar-name').click(function() {
|
||||
$(this).siblings('.widget-holder').parent().toggleClass('closed');
|
||||
$(this).parent().toggleClass('closed');
|
||||
});
|
||||
|
||||
sidebars.not('#wp_inactive_widgets').each(function(){
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -313,7 +313,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
|
||||
$scripts->add( 'admin-gallery', "/wp-admin/js/gallery$suffix.js", array( 'jquery-ui-sortable' ), '20110414' );
|
||||
|
||||
$scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), '20110902', 1 );
|
||||
$scripts->add( 'admin-widgets', "/wp-admin/js/widgets$suffix.js", array( 'jquery-ui-sortable', 'jquery-ui-draggable', 'jquery-ui-droppable' ), '20110903', 1 );
|
||||
|
||||
$scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'thickbox' ), '20110118', 1 );
|
||||
|
||||
|
|
Loading…
Reference in New Issue