[wp-trac] [WordPress Trac] #19189: Upload Thickbox fading issue
WordPress Trac
wp-trac at lists.automattic.com
Tue Nov 8 23:57:02 UTC 2011
#19189: Upload Thickbox fading issue
----------------------------+------------------------
Reporter: ocean90 | Owner:
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.3
Component: Administration | Version: 3.3
Severity: major | Resolution:
Keywords: needs-patch |
----------------------------+------------------------
Comment (by duck_):
Replying to [comment:5 duck_]:
> I'm not really sure why, but our callback being fired twice only occurs
twice since jQuery 1.7 (bug?) which is why nacin noticed that it was made
worse.
{{{
jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload")
}}}
Two elements, #TB_window and #TB_overlay, are matched so
jQuery.event.trigger is called twice. Since jQuery 1.7 the unload handler
can be called more than once, see
[https://github.com/jquery/jquery/commit/9038aa958614583f581c2be39267d81bb42f3115
commit] and [http://bugs.jquery.com/ticket/8982 ticket]. So we get the
event propagation up to window happening twice.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19189#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list