@@ -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(); });
@@ -341,6 +341,13 @@
+ if (window.location.pathname == "/purchases/new") {
$("#submit_remote").on( "click", function(e) {