// BO: JS optimization in product page

This commit is contained in:
tDidierjean
2012-01-19 15:57:01 +00:00
parent 2f40940e7e
commit 5f59b65295
17 changed files with 8 additions and 176 deletions
+7
View File
@@ -341,4 +341,11 @@ urlToCall = null;
$(document).ready(function() {
updateCurrentText();
updateFriendlyURL();
// Pressing enter in an input field should not submit the form
$('#product_form').delegate('input', 'keypress', function(e){
var code = null;
code = (e.keyCode ? e.keyCode : e.which);
return (code == 13) ? false : true;
});
});