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

Commit

Permalink
Do not reuse a new XHRUploader, otherwise the on "change" event is po…
Browse files Browse the repository at this point in the history
…inting to the wrong one. Should fix the "wrong folder" pointing problem.
  • Loading branch information
cdujeu committed Jul 10, 2013
1 parent 4cfb3c9 commit 268c71d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion core/src/plugins/uploader.html/manifest.xml
Expand Up @@ -90,7 +90,11 @@
]]></clientForm>
<dialogOnOpen><![CDATA[
if(typeof File != "undefined" && typeof (new XMLHttpRequest()).upload != "undefined" && 'draggable' in new Element('span')){
ajaxplorer.actionBar.multi_selector = new XHRUploader(oForm);
if(ajaxplorer.actionBar.multi_selector && ajaxplorer.actionBar.multi_selector.__className == 'XHRUploader'){
ajaxplorer.actionBar.multi_selector.initialize(oForm);
}else{
ajaxplorer.actionBar.multi_selector = new XHRUploader(oForm);
}
}else{
ajaxplorer.actionBar.multi_selector = new MultiUploader(oForm);
}
Expand Down

0 comments on commit 268c71d

Please sign in to comment.