Workaround for removeAttr('style') in Chromium, props duck_, fixes #17706

git-svn-id: http://svn.automattic.com/wordpress/trunk@18170 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2011-06-06 18:59:10 +00:00
parent ebdc0d02b6
commit 245d007ab2
3 changed files with 3 additions and 3 deletions

View File

@ -36,7 +36,7 @@ adminMenu = {
toggle : function(el) {
el.slideToggle(150, function() {
var id = el.removeAttr('style').parent().toggleClass( 'wp-menu-open' ).attr('id');
var id = el.css('display','').parent().toggleClass( 'wp-menu-open' ).attr('id');
if ( id ) {
$('li.wp-has-submenu', '#adminmenu').each(function(i, e) {
if ( id == e.id ) {

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,7 @@ function wp_default_scripts( &$scripts ) {
$scripts->add( 'utils', "/wp-admin/js/utils$suffix.js", false, '20101110' );
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20110603' );
$scripts->add( 'common', "/wp-admin/js/common$suffix.js", array('jquery', 'hoverIntent', 'utils'), '20110606' );
$scripts->add_data( 'common', 'group', 1 );
$scripts->localize( 'common', 'commonL10n', array(
'warnDelete' => __("You are about to permanently delete the selected items.\n 'Cancel' to stop, 'OK' to delete."),