// BO: JS optimization in product page
This commit is contained in:
1 parent
2f40940e7e
commit
5f59b65295
17 files changed
+8
-176
No files matched your search
@@ -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;
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user