diff --git a/admin-dev/themes/default/template/controllers/products/quantities.tpl b/admin-dev/themes/default/template/controllers/products/quantities.tpl
index 5fa92dec5..42c4c7102 100644
--- a/admin-dev/themes/default/template/controllers/products/quantities.tpl
+++ b/admin-dev/themes/default/template/controllers/products/quantities.tpl
@@ -24,18 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*}
-
-
{if isset($product->id)}
{l s='Available quantities for sale'}
diff --git a/admin-dev/themes/default/template/controllers/products/seo.tpl b/admin-dev/themes/default/template/controllers/products/seo.tpl
index f1c8ba85e..42cbc948a 100644
--- a/admin-dev/themes/default/template/controllers/products/seo.tpl
+++ b/admin-dev/themes/default/template/controllers/products/seo.tpl
@@ -24,21 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*}
-
-
{l s='SEO'}
diff --git a/admin-dev/themes/default/template/controllers/products/shipping.tpl b/admin-dev/themes/default/template/controllers/products/shipping.tpl
index f8c9de649..c4e8d4f90 100644
--- a/admin-dev/themes/default/template/controllers/products/shipping.tpl
+++ b/admin-dev/themes/default/template/controllers/products/shipping.tpl
@@ -24,18 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*}
-
-
1. {l s='Info.'}
{l s='Shipping'}
diff --git a/admin-dev/themes/default/template/controllers/products/suppliers.tpl b/admin-dev/themes/default/template/controllers/products/suppliers.tpl
index d4db5e6b8..91133c129 100644
--- a/admin-dev/themes/default/template/controllers/products/suppliers.tpl
+++ b/admin-dev/themes/default/template/controllers/products/suppliers.tpl
@@ -24,17 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*}
-
{if isset($product->id)}
diff --git a/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl b/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl
index ec1bccc23..3d4aa1c4e 100644
--- a/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl
+++ b/admin-dev/themes/default/template/controllers/products/virtualproduct.tpl
@@ -66,14 +66,6 @@
}
});
- $(document).ready(function() {
- $('input').keypress(function(e) {
- var code = null;
- code = (e.keyCode ? e.keyCode : e.which);
- return (code == 13) ? false : true;
- });
- });
-
function uploadFile()
{
$.ajaxFileUpload (
diff --git a/admin-dev/themes/default/template/controllers/products/warehouses.tpl b/admin-dev/themes/default/template/controllers/products/warehouses.tpl
index 58cc1484b..763806f95 100644
--- a/admin-dev/themes/default/template/controllers/products/warehouses.tpl
+++ b/admin-dev/themes/default/template/controllers/products/warehouses.tpl
@@ -24,17 +24,6 @@
* International Registered Trademark & Property of PrestaShop SA
*}
-
{if isset($product->id)}
diff --git a/js/admin-products.js b/js/admin-products.js
index d88886486..0bef27079 100644
--- a/js/admin-products.js
+++ b/js/admin-products.js
@@ -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;
+ });
});