[IMP]lib issue of jquery ui custom.bug already post on jquery ui support http://bugs.jqueryui.com/ticket/5466.

bzr revid: vme@tinyerp.com-20121203102736-usb3qcd03sdxkxfi
This commit is contained in:
Vidhin Mehta (OpenERP)
2012-12-03 15:57:36 +05:30
parent 0c1c7e0645
commit 2e05f7f6f5
@@ -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;
}
});