Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
Aayush Anand 2014-03-13 10:19:59 -04:00 committed by Marc Delisle
parent 8ca233d511
commit baecb782e5

View File

@ -3838,6 +3838,11 @@ AJAX.registerOnload('functions.js', function () {
$('#createViewDialog').find('input, select').live('keydown', function (e) {
if (e.which === 13) { // 13 is the ENTER key
e.preventDefault();
// with preventing default, selection by <select> tag
// was also prevented in IE
$(this).blur();
$(this).closest('.ui-dialog').find('.ui-button:first').click();
}
}); // end $.live()