|
|
@@ -315,6 +315,13 @@
|
|
|
getVariants();
|
|
|
showPriceBaseInput(<%= @product.is_in_dollars? %>);
|
|
|
|
|
|
+ $(document).on("keydown", function (e) {
|
|
|
+ if (window.location.pathname == "/products/new") {
|
|
|
+ if (e.which === 8 && !$(e.target).is("input, textarea")) {
|
|
|
+ e.preventDefault();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
});
|
|
|
|
|
|
$('#product_size_list').on('change', function(event) { getVariants(); });
|