mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 08:11:52 +01:00
Don't close thickbox when clicking outside the iframe while uploading, fixes #6883
git-svn-id: http://svn.automattic.com/wordpress/trunk@12554 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
1ddbdf2a2e
commit
ee22fa0603
@ -1,3 +1,4 @@
|
||||
var topWin = window.dialogArguments || opener || parent || top;
|
||||
|
||||
function fileDialogStart() {
|
||||
jQuery("#media-upload-error").empty();
|
||||
@ -24,6 +25,8 @@ function fileQueued(fileObj) {
|
||||
}
|
||||
|
||||
function uploadStart(fileObj) {
|
||||
if ( typeof topWin.tb_remove != 'undefined' )
|
||||
topWin.jQuery('#TB_overlay').unbind('click', topWin.tb_remove);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -43,6 +46,9 @@ function prepareMediaItem(fileObj, serverData) {
|
||||
jQuery('.bar', item).remove();
|
||||
jQuery('.progress', item).hide();
|
||||
|
||||
if ( typeof topWin.tb_remove != 'undefined' )
|
||||
topWin.jQuery('#TB_overlay').click(topWin.tb_remove);
|
||||
|
||||
// Old style: Append the HTML returned by the server -- thumbnail and form inputs
|
||||
if ( isNaN(serverData) || !serverData ) {
|
||||
item.append(serverData);
|
||||
|
File diff suppressed because one or more lines are too long
@ -193,7 +193,7 @@ function wp_default_scripts( &$scripts ) {
|
||||
$scripts->add( 'swfupload-all', '/wp-includes/js/swfupload/swfupload-all.js', array(), '2201');
|
||||
}
|
||||
|
||||
$scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20091208');
|
||||
$scripts->add( 'swfupload-handlers', "/wp-includes/js/swfupload/handlers$suffix.js", array('swfupload-all', 'jquery'), '2201-20091227');
|
||||
$max_upload_size = ( (int) ( $max_up = @ini_get('upload_max_filesize') ) < (int) ( $max_post = @ini_get('post_max_size') ) ) ? $max_up : $max_post;
|
||||
if ( empty($max_upload_size) )
|
||||
$max_upload_size = __('not configured');
|
||||
|
Loading…
Reference in New Issue
Block a user