Fix closing admin menu animation. props filosofo, fixes #15615.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16813 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a821a154f0
commit
fdb3b09a99
|
@ -47,8 +47,8 @@ adminMenu = {
|
||||||
|
|
||||||
toggle : function(el) {
|
toggle : function(el) {
|
||||||
var id = el.slideToggle(150, function() {
|
var id = el.slideToggle(150, function() {
|
||||||
el.css('display','');
|
el.parent().toggleClass( 'wp-menu-open' );
|
||||||
}).parent().toggleClass( 'wp-menu-open' ).attr('id');
|
}).attr('id');
|
||||||
|
|
||||||
if ( id ) {
|
if ( id ) {
|
||||||
$('li.wp-has-submenu', '#adminmenu').each(function(i, e) {
|
$('li.wp-has-submenu', '#adminmenu').each(function(i, e) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -64,7 +64,7 @@ function wp_default_scripts( &$scripts ) {
|
||||||
|
|
||||||
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
|
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
|
||||||
|
|
||||||
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20101116' );
|
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20101208' );
|
||||||
$scripts->add_data( 'common', 'group', 1 );
|
$scripts->add_data( 'common', 'group', 1 );
|
||||||
$scripts->localize( 'common', 'commonL10n', array(
|
$scripts->localize( 'common', 'commonL10n', array(
|
||||||
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete."),
|
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete."),
|
||||||
|
|
Loading…
Reference in New Issue