mirror of
https://github.com/OCA/web.git
synced 2025-02-22 13:21:25 +02:00
[IMP] web_advanced_search: Don't block modal filter menu
This commit is contained in:
committed by
Ivàn Todorovich
parent
7cc6c1ff2c
commit
6c8c0c9ec5
@@ -77,15 +77,19 @@ odoo.define("web_advanced_search", function(require) {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle dropdown hidden event to prevent the menu from closing when using a
|
* Handle dropdown hidden event to prevent the menu from closing when using a
|
||||||
* relational field
|
* relational field
|
||||||
*
|
*
|
||||||
* @override
|
* @override
|
||||||
*/
|
*/
|
||||||
start: function () {
|
start: function() {
|
||||||
this._super.apply(this, arguments);
|
this._super.apply(this, arguments);
|
||||||
this.$el.on('hide.bs.dropdown', function() {
|
this.$el.on("hide.bs.dropdown", function() {
|
||||||
return !($('.o_technical_modal.show').length || $('body.oe_wait').length);
|
var $modal = $(".o_technical_modal.show");
|
||||||
|
return !(
|
||||||
|
($modal.length && !$modal.has($(this)).length) ||
|
||||||
|
$("body.oe_wait").length
|
||||||
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user