Move postbox to postbox.js. Don't load cat and tag js for pages.

git-svn-id: https://develop.svn.wordpress.org/trunk@6675 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-01-28 21:34:42 +00:00
parent 53ab4b8faa
commit 8f407953f7
3 changed files with 26 additions and 20 deletions

View File

@@ -131,7 +131,8 @@ class WP_Scripts {
$this->add( 'admin-forms', '/wp-admin/js/forms.js', array('wp-lists'), '20080108' );
$this->add( 'xfn', '/wp-admin/js/xfn.js', false, '3517' );
$this->add( 'upload', '/wp-admin/js/upload.js', array('jquery'), '20070518' );
$this->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists'), '20080128' );
$this->add( 'postbox', '/wp-admin/js/postbox.js', array('jquery'), '20080128' );
$this->add( 'post', '/wp-admin/js/post.js', array('suggest', 'jquery-ui-tabs', 'wp-lists', 'postbox'), '20080128' );
$this->localize( 'post', 'postL10n', array(
'tagsUsed' => __('Tags used on this post:'),
'add' => attribute_escape(__('Add')),