First pass at async upload, multi-upload, and gallery feature. Modified names from patch. Hat tip: tellyworth, skeltoac.

git-svn-id: https://develop.svn.wordpress.org/trunk@6659 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2008-01-25 19:21:11 +00:00
parent 0db02d1e0d
commit dd37de2de7
15 changed files with 2323 additions and 24 deletions

View File

@@ -85,6 +85,27 @@ class WP_Scripts {
$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( 'thickbox', '/wp-includes/js/thickbox/thickbox.js', array('jquery'), '3.1');
$this->add( 'swfupload', '/wp-includes/js/swfupload/swfupload.js', false, '2.0.2');
$this->add( 'swfupload-degrade', '/wp-includes/js/swfupload/plugins/swfupload.graceful_degradation.js', array('swfupload'), '2.0.2');
$this->add( 'swfupload-queue', '/wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2.0.2');
$this->add( 'swfupload-handlers', '/wp-includes/js/swfupload/handlers.js', array('swfupload'), '2.0.2');
// these error messages came from the sample swfupload js, they might need changing.
$this->localize( 'swfupload-handlers', 'swfuploadL10n', array(
'queue_limit_exceeded' => 'You have attempted to queue too many files.',
'file_exceeds_size_limit' => 'The file you have selected is too big.',
'zero_byte_file' => 'The file you selected is empty. Please select another file.',
'invalid_filetype' => 'The file you choose is not an allowed file type.',
'default_error' => 'An error occurred in the upload. Please try again later.',
'missing_upload_url' => 'There was a configuration error. Please contact the server administrator.',
'upload_limit_exceeded' => 'You may only upload 1 file.',
'http_error' => 'HTTP error.',
'upload_failed' => 'Upload failed.',
'io_error' => 'IO error.',
'security_error' => 'Security error.',
'file_cancelled' => 'File cancelled.',
'upload_stopped' => 'Upload stopped.',
) );
$this->add( 'jquery-ui-tabs', '/wp-includes/js/jquery/ui.tabs.js', array('jquery'), '3' );