[MERGE] Unclickable z-indexed items in dialogs. (Patching jQuery UI dialog)

The jQuery UI team will not fix the bug because they redisigned
their dialog's code base for their future version (1.10)

http://bugs.jqueryui.com/ticket/5466#comment:8

bzr revid: fme@openerp.com-20121206133126-zc64pkhoh4s89q32
This commit is contained in:
Fabien Meghazi
2012-12-06 14:31:26 +01:00
@@ -8952,7 +8952,7 @@ $.extend( $.ui.dialog.overlay, {
$( document ).bind( $.ui.dialog.overlay.events, function( event ) {
// stop events if the z-index of the target is < the z-index of the overlay
// we cannot return true when we don't want to cancel the event (#3523)
if ( $( event.target ).zIndex() < $.ui.dialog.overlay.maxZ ) {
if ( $(event.target).closest('.ui-dialog').zIndex() < $.ui.dialog.overlay.maxZ ) {
return false;
}
});