Change how select menus are enhanced for batch exec options

jquery selectmenu doesn't play nicely in a dialog, when expanded (options are
cut off from screen)
This commit is contained in:
Lance Edgar 2018-01-05 17:13:01 -06:00
parent e78777f8e1
commit 067cd60e20

View file

@ -36,7 +36,10 @@
], ],
open: function() { open: function() {
if (! dialog_opened) { if (! dialog_opened) {
$('#execution-options-dialog select').selectmenu(); $('#execution-options-dialog select[auto-enhance="true"]').selectmenu();
$('#execution-options-dialog select[auto-enhance="true"]').on('selectmenuopen', function(event, ui) {
show_all_options($(this));
});
dialog_opened = true; dialog_opened = true;
} }
} }