Fade using jquery.color. Props JeremyVisser. fixes #5369

git-svn-id: https://develop.svn.wordpress.org/trunk@6572 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-01-08 06:39:09 +00:00
parent e90247fe6d
commit 1faae5f44d
3 changed files with 13 additions and 17 deletions

View File

@@ -84,24 +84,10 @@ class WP_Scripts {
$this->add( 'dimensions', '/wp-includes/js/jquery/jquery.dimensions.min.js', array('jquery'), '1.1.2');
$this->add( 'suggest', '/wp-includes/js/jquery/suggest.js', array('dimensions'), '1.1');
$this->add( 'schedule', '/wp-includes/js/jquery/jquery.schedule.js', array('jquery'), '20');
$this->add( 'jquery-color', '/wp-includes/js/jquery/jquery.color.js', array('jquery'), '1.0');
if ( is_admin() ) {
global $pagenow;
$man = false;
switch ( $pagenow ) :
case 'post.php' :
case 'post-new.php' :
$man = 'postmeta';
break;
case 'page.php' :
case 'page-new.php' :
$man = 'pagemeta';
break;
case 'link-add.php' :
case 'link.php' :
$man = 'linkmeta';
break;
endswitch;
$this->add( 'admin', '/wp-admin/js/admin.js', array('jquery-color'), '20080107');
$this->add( 'ajaxcat', '/wp-admin/js/cat.js', array( 'wp-lists' ), '20071101' );
$this->localize( 'ajaxcat', 'catL10n', array(
'add' => attribute_escape(__('Add')),