This commit is contained in:
Roland Gruber 2013-01-14 17:09:26 +00:00
parent 221a8fa93f
commit 81c7792833
1 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,13 @@ function listShowSettingsDialog(title, okText, cancelText) {
});
}
/**
* Submits the form by clicking on the given button if enter was pressed.
*
* @param id button ID
* @param e event
* @returns Boolean result
*/
function SubmitForm(id, e) {
if (e.keyCode == 13) {
if (e.preventDefault) {