Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix old-school uploader for IE (Send button did not appear)
  • Loading branch information
cdujeu committed Oct 19, 2013
1 parent d88dc24 commit d8bbe88
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions core/src/plugins/uploader.html/class.MultiUploader.js
Expand Up @@ -95,22 +95,22 @@ Class.create("MultiUploader", {
// FIX IE DISPLAY BUG
if(Prototype.Browser.IE){
$('fileInputContainerDiv').insert($('uploadBrowseButton'));
$('fileInputContainerDiv').insert($('uploadSendButton'));
//$('fileInputContainerDiv').insert($('uploadSendButton'));
$('uploadBrowseButton').show();
$('uploadSendButton').show();
//$('uploadSendButton').show();
}
if(Prototype.Browser.IE){
modal.closeValidation = function(){
$(document.body).insert($('uploadBrowseButton'));
$(document.body).insert($('uploadSendButton'));
//$(document.body).insert($('uploadSendButton'));
$('uploadBrowseButton').hide();
$('uploadSendButton').hide();
//$('uploadSendButton').hide();
return true;
};
}
// ATTACH LISTENERS ON BUTTONS (once only, that for the "observerSet")
var sendButton = formObject.down('#uploadSendButton');
if(sendButton.observerSet) return;
this.sendButton = formObject.down('#uploadSendButton');
if(this.sendButton.observerSet) return;
var optionsButton = formObject.down('#uploadOptionsButton');
var closeButton = formObject.down('#uploadCloseButton');
if(formObject.down('#uploader_options_pane')){
Expand All @@ -119,8 +119,8 @@ Class.create("MultiUploader", {
if(formObject.down('#clear_list_button')){
formObject.down('#clear_list_button').hide();
}
sendButton.observerSet = true;
sendButton.observe("click", function(){
this.sendButton.observerSet = true;
this.sendButton.observe("click", function(){
ajaxplorer.actionBar.multi_selector.submitMainForm();
});
optionsButton.observe("click", function(){
Expand Down Expand Up @@ -268,8 +268,8 @@ Class.create("MultiUploader", {
new_row.appendChild(document.createTextNode(value));
// Add it to the list
this.list_target.appendChild( new_row );
},
this.sendButton.removeClassName("disabled");
},

getFileNames : function(){

Expand Down

0 comments on commit d8bbe88

Please sign in to comment.