#6883 closed defect (bug) (fixed)
Thickbox Should Not Close When Clicked Outside Of Window (while uploading)
Reported by: | intoxination | Owned by: | azaozz |
---|---|---|---|
Milestone: | 3.0 | Priority: | normal |
Severity: | normal | Version: | 2.5.1 |
Component: | Upload | Keywords: | has-patch |
Focuses: | Cc: |
Description
When you click on the overlay, Thickbox will close, which is the desirable function of Thickbox. This should be prevented while an upload is in progress though. Perhaps adding:
jQuery("#TB_overlay").unbind("click",tb_remove);
When the upload starts and then once the upload finishes call:
jQuery("#TB_overlay").click(tb_remove);
Would be a good working method to fix this. Of course the uploader iFrame would have to call this method from the opener window, since Thickbox is instanced from there.
Attachments (1)
Change History (15)
#2
@
16 years ago
- Component changed from General to JavaScript
- Keywords has-patch dev-feedback added; thickbox uploader removed
- Milestone changed from 2.9 to 2.8
- Owner changed from anonymous to azaozz
#3
@
16 years ago
- Cc dragos.nicholas@… added
- Summary changed from Thickbox Should Not Close When Clicked Outside Of Window to Thickbox Should Not Close When Clicked Outside Of Window (while uploading)
#4
@
16 years ago
- Milestone changed from 2.8 to 2.9
This is a good idea but perhaps we should replace Thickbox as it's no longer supported. Better to fix together with the rest of the media improvements in 2.9.
#9
@
15 years ago
- Keywords has-patch added; needs-patch removed
I'll pick up the ground initiative and created a first patch.
#12
in reply to:
↑ 10
@
15 years ago
Replying to azaozz:
Don't think we need to modify thickbox.js in order to do this.
With all tests I did I needed to otherwise the unbind did not work. Have you tested your code?
Sounds fair to me. Also related: when multiple uploads are in progress, it's possible to stop them by clicking Insert Into Post on the first one. Those buttons (and perhaps the whole Show detail sliding whatsit) should be disabled while other uploads are in progress, in the same way you've suggested above.
And just in case it comes up: under normal circumstances the Thickbox should definitely close when you click outside its box.