Make sure Upload button always shows. Props filosofo. see #6979

git-svn-id: https://develop.svn.wordpress.org/trunk@9465 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-11-01 17:20:55 +00:00
parent 16acf7d11c
commit c786488346
3 changed files with 7 additions and 4 deletions

View File

@@ -206,8 +206,11 @@ function fileDialogComplete(num_files_queued) {
}
function swfuploadPreLoad() {
var swfupload_element = jQuery('#'+swfu.customSettings.swfupload_element_id).get(0);
jQuery('#' + swfu.customSettings.degraded_element_id).hide();
jQuery('#' + swfu.customSettings.swfupload_element_id).show();
// Doing this directly because jQuery().show() seems to have timing problems
if ( swfupload_element && ! swfupload_element.style.display )
swfupload_element.style.display = 'block';
}
function swfuploadLoadFailed() {

View File

@@ -109,7 +109,7 @@ function wp_default_scripts( &$scripts ) {
'is_lighttpd_before_150' => is_lighttpd_before_150(),
) );
$scripts->add( 'swfupload-queue', '/wp-includes/js/swfupload/plugins/swfupload.queue.js', array('swfupload'), '2.2.0-20081031');
$scripts->add( 'swfupload-handlers', '/wp-includes/js/swfupload/handlers.js', array('swfupload'), '2.2.0-20081031');
$scripts->add( 'swfupload-handlers', '/wp-includes/js/swfupload/handlers.js', array('swfupload'), '2.2.0-20081101');
// these error messages came from the sample swfupload js, they might need changing.
$scripts->localize( 'swfupload-handlers', 'swfuploadL10n', array(
'queue_limit_exceeded' => __('You have attempted to queue too many files.'),