//fixed #PSCFV-2432

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15546 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
vAugagneur
2012-05-21 17:01:22 +00:00
parent 1ac646309c
commit 0f91f91030
@@ -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() {