Merge branch 'ent-8656-post-busqueda-no-funciona-al-cambiar-owner-de-un-evento' into 'develop'

Fix select2 search on extended events dialog

See merge request artica/pandorafms!4738
This commit is contained in:
Daniel Rodriguez 2022-03-11 12:41:22 +00:00
commit 601cd1cba4
1 changed files with 20 additions and 1 deletions

View File

@ -59,7 +59,26 @@ function show_event_dialog(event, dialog_page, result) {
background: "black"
},
width: 710,
height: 600
height: 600,
autoOpen: true,
open: function() {
if (
$.ui &&
$.ui.dialog &&
$.ui.dialog.prototype._allowInteraction
) {
var ui_dialog_interaction =
$.ui.dialog.prototype._allowInteraction;
$.ui.dialog.prototype._allowInteraction = function(e) {
if ($(e.target).closest(".select2-dropdown").length)
return true;
return ui_dialog_interaction.apply(this, arguments);
};
}
},
_allowInteraction: function(event) {
return !!$(event.target).is(".select2-input") || this._super(event);
}
})
.show();
$.post({