diff --git a/src/main/resources/static/mngr/js/script.js b/src/main/resources/static/mngr/js/script.js index 19489164..a02fd688 100644 --- a/src/main/resources/static/mngr/js/script.js +++ b/src/main/resources/static/mngr/js/script.js @@ -923,3 +923,10 @@ $(".comma").each(function () { var text = $(this).text(); $(this).text(text.replace(/(\d)(?=(?:\d{3})+(?!\d))/g, "$1,")); }); + +//해당 클래스를 가진 요소 .trim() +function trimInputValue() { + $('input.input-trim').each(function () { + $(this).val($(this).val().trim()); + }); +} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsC.jsp b/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsC.jsp index 7bc424cc..cdc18c79 100644 --- a/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsC.jsp +++ b/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsC.jsp @@ -1270,7 +1270,7 @@ formData.append('files', file); // 서버에서 파일을 받을 때 'files'라는 이름으로 전송 }); - + trimInputValue(); if (confirm('상품을 ')) { $.ajax({ type: 'post', @@ -1417,7 +1417,7 @@
- @@ -1450,11 +1450,11 @@
- +
-
+
` +invntry_policy_qy+ ` @@ -1557,11 +1557,11 @@ ` +firstAdd+ ` - - - - - + + + + + ` +invntry_policy_qy+ ` @@ -1599,7 +1599,7 @@ - +
- disabled /> ) @@ -2760,7 +2760,7 @@ 예약 상품 안내문구
-
@@ -2814,7 +2814,7 @@ 노출 문구 - + @@ -2891,7 +2891,7 @@ 개의 수량을 부터 - + 분마다 개씩 차감 @@ -3080,7 +3080,7 @@
- + <%-- --%>
@@ -3111,18 +3111,18 @@
- +
- +
- +
@@ -3280,16 +3280,16 @@ - + - + - + - + @@ -3804,7 +3804,7 @@ 배송 안내 문구
- +
@@ -4014,7 +4014,7 @@ //옵션명 $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__inputList').append(`
- +
`); //노출여부 @@ -4038,14 +4038,14 @@ - + `); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` - + `); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` - + `); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` diff --git a/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsCopyC.jsp b/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsCopyC.jsp index 7d9c1399..58c685b3 100644 --- a/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsCopyC.jsp +++ b/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsCopyC.jsp @@ -1323,6 +1323,7 @@ }); if (confirm('상품을 ')) { + trimInputValue(); $.ajax({ type: 'post', enctype: 'multipart/form-data', @@ -1454,7 +1455,7 @@
- @@ -1487,11 +1488,11 @@
- +
-
+
` +invntry_policy_qy+ ` @@ -1595,11 +1596,11 @@ ` +firstAdd+ ` - - - - - + + + + + ` +invntry_policy_qy+ ` @@ -1637,7 +1638,7 @@ - +
- disabled /> ) @@ -2935,7 +2936,7 @@ 예약 상품 안내문구
- 노출 문구 - @@ -3092,7 +3093,7 @@ 개의 수량을 disabled > 부터 - disabled > + disabled > 분마다 disabled > 개씩 차감 @@ -3313,7 +3314,7 @@
- + <%-- --%> @@ -3323,7 +3324,7 @@ - + @@ -3337,7 +3338,7 @@
- + @@ -3347,7 +3348,7 @@ - + @@ -3390,7 +3391,7 @@
- +
@@ -3398,14 +3399,14 @@
- +
- +
@@ -3536,7 +3537,7 @@
- +
@@ -3566,19 +3567,19 @@
- +
- +
- +
@@ -3723,16 +3724,16 @@ - + - + - + - + @@ -3769,17 +3770,17 @@ - + - + - + - + @@ -3827,13 +3828,13 @@ - + - - - - + + + + " title="재고옵션 재고" name="invntryQy_invntry" /> " title="재고옵션 소비자가" name="cnsmrpric_invntry"/> " title="재고옵션 판매가" name="slepric_invntry"/> @@ -3855,7 +3856,7 @@ - +
@@ -4526,7 +4527,7 @@ 배송 안내 문구
- +
@@ -5010,7 +5011,7 @@ //옵션명 $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__inputList').append(`
- +
`); //노출여부 @@ -5035,14 +5036,14 @@
- +
`); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` - + `); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` - + `); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` diff --git a/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsDtlU.jsp b/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsDtlU.jsp index e9cb075c..a36a2b3e 100644 --- a/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsDtlU.jsp +++ b/src/main/webapp/WEB-INF/views/mngr/goods/goodsmngr/GoodsDtlU.jsp @@ -749,7 +749,7 @@
- @@ -782,11 +782,11 @@
- +
-
+
` +invntry_policy_qy+ ` @@ -890,11 +890,11 @@ ` +firstAdd+ ` - - - - - + + + + + ` +invntry_policy_qy+ ` @@ -933,7 +933,7 @@ - +
- disabled /> ) @@ -3387,7 +3388,7 @@ 예약 상품 안내문구
- 노출 문구 - @@ -3544,7 +3545,7 @@ 개의 수량을 disabled > 부터 - disabled > + disabled > 분마다 disabled > 개씩 차감 @@ -3767,7 +3768,7 @@
- + <%-- --%> @@ -3777,7 +3778,7 @@ - + @@ -3791,7 +3792,7 @@
- + @@ -3801,7 +3802,7 @@ - + @@ -3844,7 +3845,7 @@
- +
@@ -3852,14 +3853,14 @@
- +
- +
@@ -3997,7 +3998,7 @@
- +
@@ -4028,19 +4029,19 @@
- +
- +
- +
@@ -4187,16 +4188,16 @@ - + - + - + - + @@ -4234,17 +4235,17 @@ - + - + - + - + @@ -4294,13 +4295,13 @@ - + - - - - + + + + " title="재고옵션 재고" name="invntryQy_invntry" disabled /> " title="재고옵션 가용재고" disabled /> " title="재고옵션 소비자가" name="cnsmrpric_invntry"/> @@ -4323,7 +4324,7 @@ - +
@@ -5005,7 +5006,7 @@ 배송 안내 문구
- +
@@ -5523,7 +5524,7 @@ //옵션명 $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__inputList').append(`
- +
`); //노출여부 @@ -5548,14 +5549,14 @@
- +
`); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` - + `); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(` - + `); $closestTr.find('td:eq(' + tdCount++ + ') .optionApply__priceContainer').append(`