Merge branch 'ent-7613-wizard-configuracion-inicial' into 'develop'
Fix select2 write search field on dialog See merge request artica/pandorafms!4242
This commit is contained in:
commit
f33ccf1db9
|
@ -264,7 +264,19 @@ function show_configuration_wizard() {
|
|||
background: "black"
|
||||
},
|
||||
closeOnEscape: false,
|
||||
open: function(event, ui) { $(".ui-dialog-titlebar-close").hide(); }
|
||||
open: function(event, ui) {
|
||||
$(".ui-dialog-titlebar-close").hide();
|
||||
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);
|
||||
}
|
||||
});
|
||||
|
||||
default_language_displayed = $("#language").val();
|
||||
|
|
Loading…
Reference in New Issue