From 52d0c9662f023b56ca485e775464ba97ff445f28 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 21 May 2012 17:01:22 +0000 Subject: [PATCH] //fixed #PSCFV-2432 --- admin-dev/themes/default/template/toolbar.tpl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/admin-dev/themes/default/template/toolbar.tpl b/admin-dev/themes/default/template/toolbar.tpl index 6b396b616..d842e2357 100644 --- a/admin-dev/themes/default/template/toolbar.tpl +++ b/admin-dev/themes/default/template/toolbar.tpl @@ -74,7 +74,12 @@ //hide standard submit button btn_submit.hide(); - + //bind enter key press to validate form + $('#{$table}_form').keypress(function (e) { + key = window.event ? window.event.keyCode : e.which; + if (key == 13 && window.event.target.localName != 'textarea') + $('#desc-{$table}-save').click(); + }); //submit the form {block name=formSubmit} btn_save.click(function() {