action-center-platform
action-center-platform copied to clipboard
On institution signatures filter, hitting enter after selecting should submit the form
Maybe like this (from https://github.com/select2/select2/issues/1456)
$('.select2-selection').on('keypress', function (e) {
if (e.keyCode === 13) {
$(this).closest('form').submit();
}
});
$('your select element').on('select2:close', function () { if ($(form).validate()) { $('.select2-selection').one('keydown', function (e) { if (e.keyCode === 13) $(form).submit(); }); } }).on('select2:open', function () { $('.select2-selection').off('keydown'); });