mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
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:
commit
601cd1cba4
@ -59,7 +59,26 @@ function show_event_dialog(event, dialog_page, result) {
|
|||||||
background: "black"
|
background: "black"
|
||||||
},
|
},
|
||||||
width: 710,
|
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();
|
.show();
|
||||||
$.post({
|
$.post({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user