Actions
Bug #24773
closedThe FlashUploader does not disappear anymore
Start date:
2011-01-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
After successfully uploading files, the FlashUploader usually disappears.
Since #24720 this is not the case anymore.
The line
top.nav = component;
causes a JS error: top.nav is undefined
Removing it solves the issue.
(issue imported from #M17280)
Files
Updated by Steffen Gebert almost 14 years ago
Funny thing (which makes the whole issue to complicated for me as JS-ignorant):
The uploader also needs your fix for compatibility (or at least the tree frame..)
Before this patch top.nav.refresh() could not be executed, as it was undefined in this code (somewhere inline code):
(function (evt) {with (this.ownerDocument ? this.ownerDocument : {}) {with (this.form ? this.form : {}) {with (this) {return (function(evt){if (top.TYPO3.FileUploadWindow.isFlashAvailable()) { initFlashUploader("%2Fopt%2Flocal%2Fapache2%2Fvhosts%2Ftypo3dev%2Ffileadmin%2Ftest2%2F"); } else if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'file_upload.php?target=%2Fopt%2Flocal%2Fapache2%2Fvhosts%2Ftypo3dev%2Ffileadmin%2Ftest2%2F';}top.nav.refresh();Clickmenu.hideAll(); }).call(this, evt);}}}})
Updated by Steffen Gebert almost 14 years ago
Hint: This problem only occurs, if the FlashUploader is opened using the Context Menu of the File tree.
Updated by Steffen Kamper almost 14 years ago
solved - all problems (to note: coming from clickmenu) are because the upload link force a reload of the nav frame, so the caller script is no more valid, a nobrainer :)
Actions