Fix getColor() in wp-lists.js
git-svn-id: http://svn.automattic.com/wordpress/trunk@17780 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ce344a28da
commit
1c525018c3
|
@ -242,16 +242,9 @@ wpList = {
|
|||
return false;
|
||||
},
|
||||
|
||||
// From jquery.color.js: jQuery Color Animation by John Resig
|
||||
getColor: function( el ) {
|
||||
if ( el.constructor == Object )
|
||||
el = el.get(0);
|
||||
var elem = el, color, rgbaTrans = new RegExp( "rgba\\(\\s*0,\\s*0,\\s*0,\\s*0\\s*\\)", "i" );
|
||||
do {
|
||||
color = jQuery.curCSS(elem, 'backgroundColor');
|
||||
if ( color != '' && color != 'transparent' && !color.match(rgbaTrans) || jQuery.nodeName(elem, "body") )
|
||||
break;
|
||||
} while ( elem = elem.parentNode );
|
||||
var color = jQuery(el).css('backgroundColor');
|
||||
|
||||
return color || '#ffffff';
|
||||
},
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -110,7 +110,7 @@ function wp_default_scripts( &$scripts ) {
|
|||
$scripts->add( 'autosave', "/wp-includes/js/autosave$suffix.js", array('schedule', 'wp-ajax-response'), '20110425' );
|
||||
$scripts->add_data( 'autosave', 'group', 1 );
|
||||
|
||||
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20110429' );
|
||||
$scripts->add( 'wp-lists', "/wp-includes/js/wp-lists$suffix.js", array('wp-ajax-response'), '20110430' );
|
||||
$scripts->add_data( 'wp-lists', 'group', 1 );
|
||||
|
||||
$scripts->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.8.3');
|
||||
|
|
Loading…
Reference in New Issue