Opened 2 years ago
Closed 2 years ago
#17329 closed defect (bug) (fixed)
Inline media uploader broken
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.2 |
| Component: | General | Version: | |
| Severity: | major | Keywords: | needs-testing |
| Cc: |
Description
Using FF4, on add new posts screen click on "Add an image" meida button, the "select files" button is missing and there's a javascript error.
c.defaultView.getComputedStyle(a, null) is null
The button appears if I reload the media uploader iframe
Attachments (2)
Change History (13)
If we init the JS later, perhaps at body.onload instead of document.ready, would it bypass that bug?
Replying to azaozz:
If we init the JS later, perhaps at body.onload instead of document.ready, would it bypass that bug?
Tried it, no change.
A silly hack to bypass this bug would be changing display: none to visibility: hidden. See 17329.diff
The js error is fixed in jQuery 1.6.1rc1 but the "Select files" button is still not displayed with jQuery 1.6.1rc1
Seems fixed in FF 4.0.1, all thickbox popups with iframes work properly.
Replying to azaozz:
Seems fixed in FF 4.0.1, all thickbox popups with iframes work properly even with jQuery 1.5.2.
I'm using FF 4.0.1(Ubuntu), the problem still exists.
comment:8
johnbillion — 2 years ago
Confirming this error occurs in Firefox 4.0 on Win7.
- Keywords needs-testing added
A little less creepy hack is to use negative offsets instead of display: none. See 17329.2.diff
comment:10
azaozz — 2 years ago
Think the reason for this happening is that the swfobject DOM ready event fires before the jQuery one. Tried adding some delay in swfupload.swfobject.js that seems to fix this.
comment:11
azaozz — 2 years ago
- Owner set to azaozz
- Resolution set to fixed
- Status changed from new to closed
In [18073]:

Related jQuery bug: http://bugs.jquery.com/ticket/8763