From b67a4fdd7756d5fcf023a72719af8b40eae404f2 Mon Sep 17 00:00:00 2001 From: vAugagneur Date: Mon, 21 May 2012 17:15:51 +0000 Subject: [PATCH] //fixed #PSCFV-2432 part 3 for IE :p git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15552 b9a71923-0436-4b27-9f14-aed3839534dd --- admin-dev/themes/default/template/toolbar.tpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/admin-dev/themes/default/template/toolbar.tpl b/admin-dev/themes/default/template/toolbar.tpl index 701d40045..86acd1989 100644 --- a/admin-dev/themes/default/template/toolbar.tpl +++ b/admin-dev/themes/default/template/toolbar.tpl @@ -76,9 +76,7 @@ btn_submit.hide(); //bind enter key press to validate form $('#{$table}_form').keypress(function (e) { - key = window.event ? window.event.keyCode : e.which; - target = window.event ? window.event.target.localName : e.target.localName - if (key == 13 && target != 'textarea') + if (e.which == 13 && e.target.localName != 'textarea') $('#desc-{$table}-save').click(); }); //submit the form