fix : 설정 > 패밀리사이트 설정 > 입력창 추가 - 스크립트 개선
fix : 상품관리 > 상품조회 > 상품 등록/복사재등록/수정 - 실무게(KG) 자릿수 제한 개선
(cherry picked from commit 5fa4aa5c37)
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
// 하이픈 뒤에 숫자한자리만 남기기
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
// 하이픈 뒤에 숫자한자리만 남기기
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
// 하이픈 뒤에 숫자한자리만 남기기
|
||||
|
||||
@@ -27,52 +27,11 @@
|
||||
/* ********************************************************
|
||||
* 입력창 추가
|
||||
******************************************************** */
|
||||
const fn_add_emptyBox = function(_target) {
|
||||
const fn_add_emptyBox = function() {
|
||||
|
||||
stplatChk = false;
|
||||
let count = 0;
|
||||
let trClone = '';
|
||||
|
||||
if (_target === 'clauseChk') {
|
||||
|
||||
count = $('#tableSorting').children('tr').length + 1;
|
||||
|
||||
trClone = '<tr>'
|
||||
+ ' <td>'
|
||||
+ ' <label class="b-checkbox checkbox is-medium">'
|
||||
+ ' <input type="checkbox" name="clauseChk" value=""><span class="check"></span>'
|
||||
+ ' </label>'
|
||||
+ ' </td>'
|
||||
+ ' <td>'
|
||||
+ ' <div class="select-box">'
|
||||
+ ' <select class="full" name="clause" id="clause' + count + '" title="약관구분" onchange="fn_select_subClause(this);">'
|
||||
+ ' <option value="" selected >선택하세요</option>'
|
||||
+ ' <c:forEach var="cgn002" items="${resultMap.cgn002}" varStatus="status">'
|
||||
+ ' <option value="${cgn002.cd}"><c:out value="${cgn002.cdNm}"/></option>'
|
||||
+ ' </c:forEach>'
|
||||
+ ' </select>'
|
||||
+ ' </div>'
|
||||
+ ' </td>'
|
||||
+ ' <td>'
|
||||
+ ' <div class="select-box privacyPolicy-select">'
|
||||
+ ' <select class="full" name="stplatInnbArr" id="privacyPolicy' + count + '" title="약관 내용">'
|
||||
+ ' <option value="" selected >약관 구분을 선택하세요</option>'
|
||||
+ ' </select>'
|
||||
+ ' </div>'
|
||||
+ ' </td>'
|
||||
+ ' <td>'
|
||||
+ ' <div class="manage-btn-container">'
|
||||
+ ' <a href="#clause-info-modal" rel="modal:open" class="btn xsm primary outline privacy" onclick="fn_select_clauseInformation(\'new\');"><spring:message code="button.view"/></a>'
|
||||
+ ' </div>'
|
||||
+ ' </td>'
|
||||
+ '</tr>';
|
||||
|
||||
$('#tableSorting').append(trClone);
|
||||
$('#clause' + count).niceSelect();
|
||||
$('#privacyPolicy' + count).niceSelect();
|
||||
|
||||
} else {
|
||||
|
||||
trClone = '<tr>'
|
||||
+ ' <td>'
|
||||
+ ' <label class="b-checkbox checkbox is-medium">'
|
||||
@@ -93,7 +52,6 @@
|
||||
|
||||
$('#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,9 +72,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
if (_target === 'clauseChk') {
|
||||
$('#clauseAll').prop('checked', false);
|
||||
} else {
|
||||
$('#siteAll').prop('checked', false);
|
||||
const total = $('#tableSiteSorting').find('tr').length;
|
||||
|
||||
@@ -128,7 +83,6 @@
|
||||
|
||||
$('#noData').hide();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -173,8 +127,8 @@
|
||||
</div>
|
||||
<div class="center"></div>
|
||||
<div class="right">
|
||||
<button type="button" class="btn primary outline xsm" onclick="fn_add_emptyBox('siteChk');"><spring:message code="button.add"/></button>
|
||||
<button type="button" class="btn dark xsm" onclick="fn_remove_box('siteChk');"><spring:message code="button.delete"/></button>
|
||||
<button type="button" class="btn primary outline xsm" onclick="fn_add_emptyBox();"><spring:message code="button.add"/></button>
|
||||
<button type="button" class="btn dark xsm" onclick="fn_remove_box();"><spring:message code="button.delete"/></button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="table-wrapper">
|
||||
|
||||
Reference in New Issue
Block a user