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 fdc80548..315bf77e 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 @@ -4152,7 +4152,11 @@ // 실무게 자릿수 제한 $(document).on('input', 'input[name="realWt_normal"]', function () { - this.value = this.value.replace(/(\.\d).*/,'$1'); + let value = this.value; + value = value.replace(/[^\d.]/g, ''); // 숫자와 .만 허용 + value = value.replace(/(\..*)\./g, '$1'); // . 하나만 허용 + value = value.replace(/(\.\d{1}).*/, '$1'); // 소수 1자리 제한 + this.value = value; }); // 하이픈 뒤에 숫자한자리만 남기기 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 54ad747e..37d6a252 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 @@ -5162,7 +5162,11 @@ // 실무게 자릿수 제한 $(document).on('input', 'input[name="realWt_normal"]', function () { - this.value = this.value.replace(/(\.\d).*/,'$1'); + let value = this.value; + value = value.replace(/[^\d.]/g, ''); // 숫자와 .만 허용 + value = value.replace(/(\..*)\./g, '$1'); // . 하나만 허용 + value = value.replace(/(\.\d{1}).*/, '$1'); // 소수 1자리 제한 + this.value = value; }); // 하이픈 뒤에 숫자한자리만 남기기 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 6ce0cfa1..f37553e2 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 @@ -5682,7 +5682,11 @@ // 실무게 자릿수 제한 $(document).on('input', 'input[name="realWt_normal"]', function () { - this.value = this.value.replace(/(\.\d).*/,'$1'); + let value = this.value; + value = value.replace(/[^\d.]/g, ''); // 숫자와 .만 허용 + value = value.replace(/(\..*)\./g, '$1'); // . 하나만 허용 + value = value.replace(/(\.\d{1}).*/, '$1'); // 소수 1자리 제한 + this.value = value; }); // 하이픈 뒤에 숫자한자리만 남기기 diff --git a/src/main/webapp/WEB-INF/views/mngr/setup/family/FamilySiteUpdtU.jsp b/src/main/webapp/WEB-INF/views/mngr/setup/family/FamilySiteUpdtU.jsp index bd678989..d46cf2db 100644 --- a/src/main/webapp/WEB-INF/views/mngr/setup/family/FamilySiteUpdtU.jsp +++ b/src/main/webapp/WEB-INF/views/mngr/setup/family/FamilySiteUpdtU.jsp @@ -27,73 +27,31 @@ /* ******************************************************** * 입력창 추가 ******************************************************** */ - const fn_add_emptyBox = function(_target) { + const fn_add_emptyBox = function() { stplatChk = false; - let count = 0; let trClone = ''; - if (_target === 'clauseChk') { + trClone = '' + + ' ' + + ' ' + + ' ' + + ' ' + + '
' + + ' ' + + '
' + + ' ' + + ' ' + + '
' + + ' ' + + '
' + + ' ' + + ''; - count = $('#tableSorting').children('tr').length + 1; - - trClone = '' - + ' ' - + ' ' - + ' ' - + ' ' - + '
' - + ' ' - + '
' - + ' ' - + ' ' - + '
' - + ' ' - + '
' - + ' ' - + ' ' - + '
' - + ' ' - + '
' - + ' ' - + ''; - - $('#tableSorting').append(trClone); - $('#clause' + count).niceSelect(); - $('#privacyPolicy' + count).niceSelect(); - - } else { - - trClone = '' - + ' ' - + ' ' - + ' ' - + ' ' - + '
' - + ' ' - + '
' - + ' ' - + ' ' - + '
' - + ' ' - + '
' - + ' ' - + ''; - - $('#tableSiteSorting').append(trClone); - $('#noData').hide(); - } + $('#tableSiteSorting').append(trClone); + $('#noData').hide(); @@ -102,9 +60,9 @@ /* ******************************************************** * 입력창 삭제 ******************************************************** */ - const fn_remove_box = function(_target) { + const fn_remove_box = function() { - const target = $('[name=' + _target + ']:checked'); + const target = $('[name=siteChk]:checked'); if (target.length === 0) { alert('항목을 선택해 주세요.'); @@ -114,20 +72,16 @@ }); } - if (_target === 'clauseChk') { - $('#clauseAll').prop('checked', false); + $('#siteAll').prop('checked', false); + const total = $('#tableSiteSorting').find('tr').length; + + if (total === 1) { + + $('#noData').show(); + } else { - $('#siteAll').prop('checked', false); - const total = $('#tableSiteSorting').find('tr').length; - if (total === 1) { - - $('#noData').show(); - - } else { - - $('#noData').hide(); - } + $('#noData').hide(); } } @@ -173,8 +127,8 @@
- - + +