[FIX] Better fix for unclickable z-indexed items in dialogs. (Patching jQuery UI dialog)
bzr revid: fme@openerp.com-20121210145239-0x1sprin6hp66ghl
This commit is contained in:
parent
f5bc832b41
commit
7852c12d8a
|
@ -8952,7 +8952,8 @@ $.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).closest('.ui-dialog').zIndex() < $.ui.dialog.overlay.maxZ ) {
|
||||
if ($(event.target).zIndex() < $.ui.dialog.overlay.maxZ &&
|
||||
$(event.target).closest('.ui-dialog').zIndex() < $.ui.dialog.overlay.maxZ) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue