[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:
Fabien Meghazi 2012-12-10 15:52:39 +01:00
parent f5bc832b41
commit 7852c12d8a
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
});