Prevent the user from leaving the write/edit page when an upload button is clicked before the page has finished loading
git-svn-id: https://develop.svn.wordpress.org/trunk@10640 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6ccd5c2540
commit
bf278c36bd
|
@ -349,10 +349,10 @@ function media_buttons() {
|
||||||
$audio_title = __('Add Audio');
|
$audio_title = __('Add Audio');
|
||||||
$out = <<<EOF
|
$out = <<<EOF
|
||||||
|
|
||||||
<a href="{$image_upload_iframe_src}&TB_iframe=true" id="add_image" class="thickbox" title='$image_title'><img src='images/media-button-image.gif' alt='$image_title' /></a>
|
<a href="{$image_upload_iframe_src}&TB_iframe=true" id="add_image" class="thickbox" title='$image_title' onclick="return false;"><img src='images/media-button-image.gif' alt='$image_title' /></a>
|
||||||
<a href="{$video_upload_iframe_src}&TB_iframe=true" id="add_video" class="thickbox" title='$video_title'><img src='images/media-button-video.gif' alt='$video_title' /></a>
|
<a href="{$video_upload_iframe_src}&TB_iframe=true" id="add_video" class="thickbox" title='$video_title' onclick="return false;"><img src='images/media-button-video.gif' alt='$video_title' /></a>
|
||||||
<a href="{$audio_upload_iframe_src}&TB_iframe=true" id="add_audio" class="thickbox" title='$audio_title'><img src='images/media-button-music.gif' alt='$audio_title' /></a>
|
<a href="{$audio_upload_iframe_src}&TB_iframe=true" id="add_audio" class="thickbox" title='$audio_title' onclick="return false;"><img src='images/media-button-music.gif' alt='$audio_title' /></a>
|
||||||
<a href="{$media_upload_iframe_src}&TB_iframe=true" id="add_media" class="thickbox" title='$media_title'><img src='images/media-button-other.gif' alt='$media_title' /></a>
|
<a href="{$media_upload_iframe_src}&TB_iframe=true" id="add_media" class="thickbox" title='$media_title' onclick="return false;"><img src='images/media-button-other.gif' alt='$media_title' /></a>
|
||||||
|
|
||||||
EOF;
|
EOF;
|
||||||
printf($context, $out);
|
printf($context, $out);
|
||||||
|
|
Loading…
Reference in New Issue