diff --git a/pandora_console/include/javascript/pandora_events.js b/pandora_console/include/javascript/pandora_events.js index 18219be4a0..357e22318c 100644 --- a/pandora_console/include/javascript/pandora_events.js +++ b/pandora_console/include/javascript/pandora_events.js @@ -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({