//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:
1 parent
1ac646309c
commit
0f91f91030
1 file changed
+6
-1
@@ -74,7 +74,12 @@
|
|||||||
|
|
||||||
//hide standard submit button
|
//hide standard submit button
|
||||||
btn_submit.hide();
|
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
|
//submit the form
|
||||||
{block name=formSubmit}
|
{block name=formSubmit}
|
||||||
btn_save.click(function() {
|
btn_save.click(function() {
|
||||||
|
|||||||
Reference in new issue
Block a user