Fix flash upload button, right sidebar on write pages in IE6

git-svn-id: https://develop.svn.wordpress.org/trunk@10865 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2009-04-04 10:21:43 +00:00
parent 5f2218455d
commit ca129da990
10 changed files with 53 additions and 25 deletions

View File

@@ -206,20 +206,28 @@ function fileDialogComplete(num_files_queued) {
}
}
function swfuploadPreLoad(a) {
if ( typeof(a) == 'undefined' && typeof(getUserSetting) == 'function' )
a = getUserSetting('uploader');
function switchUploader(s) {
var f = document.getElementById(swfu.customSettings.swfupload_element_id), h = document.getElementById(swfu.customSettings.degraded_element_id);
if ( s ) {
f.style.display = 'block';
h.style.display = 'none';
} else {
f.style.display = 'none';
h.style.display = 'block';
}
}
if ( !a ) {
jQuery('#' + swfu.customSettings.swfupload_element_id).show();
jQuery('#' + swfu.customSettings.degraded_element_id).hide();
} else
swfuploadLoadFailed();
function swfuploadPreLoad() {
if ( !uploaderMode ) {
switchUploader(1);
} else {
switchUploader(0);
}
}
function swfuploadLoadFailed() {
jQuery('#' + swfu.customSettings.swfupload_element_id).hide();
jQuery('#' + swfu.customSettings.degraded_element_id).show();
switchUploader(0);
jQuery('.upload-html-bypass').hide();
}
function uploadError(fileObj, error_code, message) {

File diff suppressed because one or more lines are too long