소스 검색

new test to prevent enter event

jose miguel 7 년 전
부모
커밋
394b7fe2b5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/views/products/_form.html.erb

+ 1 - 1
app/views/products/_form.html.erb

@@ -317,7 +317,7 @@
 
 		$(document).on("keydown", function (e) {
 			if (window.location.pathname == "/products/new") {
-				if (e.which === 8 && !$(e.target).is("input, textarea")) {
+				if (e.which === 8) {
 					e.preventDefault();
 				}
 			}