Bläddra i källkod

reverted testing changes from products form

jose miguel 7 år sedan
förälder
incheckning
81b901602c
2 ändrade filer med 0 tillägg och 16 borttagningar
  1. 0 8
      app/views/products/_form.html.erb
  2. 0 8
      app/views/products/_form_remote.html.erb

+ 0 - 8
app/views/products/_form.html.erb

@@ -314,14 +314,6 @@
 		presentaciones();
 		getVariants();
 		showPriceBaseInput(<%= @product.is_in_dollars? %>);
-
-		$(document).on("keydown", function (e) {
-			if (window.location.pathname == "/products/new") {
-				if (e.which === 8) {
-					e.preventDefault();
-				}
-			}
-		});
 	});
 
 	$('#product_size_list').on('change', function(event) { getVariants(); });

+ 0 - 8
app/views/products/_form_remote.html.erb

@@ -340,14 +340,6 @@
 		presentaciones();
 		getVariants();
 		showPriceBaseInput(<%= @product.is_in_dollars? %>);
-
-		$(document).on("keydown", function (e) {
-			if (window.location.pathname == "/purchases/new") {
-				if (e.which === 8 && !$(e.target).is("input, textarea")) {
-					e.preventDefault();
-				}
-			}
-		});
 	});
 
 	$("#submit_remote").on( "click", function(e) {