|
|
|
|
@ -89,13 +89,13 @@
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="th"><span class="required">*</span> 가로(m)</th>
|
|
|
|
|
<th class="th">가로(m)</th>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" id="wdth" name="wdth" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 5.25" validation-check="required" value="${data.wdth}"/>
|
|
|
|
|
<input type="text" id="wdth" name="wdth" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 5.25" value="${data.wdth}"/>
|
|
|
|
|
</td>
|
|
|
|
|
<th class="th"><span class="required">*</span> 세로(m)</th>
|
|
|
|
|
<th class="th">세로(m)</th>
|
|
|
|
|
<td>
|
|
|
|
|
<input type="text" id="vrtc" name="vrtc" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 8.75" validation-check="required" value="${data.vrtc}"/>
|
|
|
|
|
<input type="text" id="vrtc" name="vrtc" class="input decimalMask" style="width: 120px;" maxlength="10" placeholder="예) 8.75" value="${data.vrtc}"/>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
@ -225,6 +225,7 @@
|
|
|
|
|
// 중요한 로직 주석: 가로와 세로 값 입력이 완료되면(blur) 자동으로 면적을 계산하여 입력한다.
|
|
|
|
|
// input 이벤트 제거: inputmask와 충돌하여 정상 동작하지 않음
|
|
|
|
|
$('#wdth, #vrtc').on('blur input', function() {
|
|
|
|
|
if( $(this).val() === '' ) return;
|
|
|
|
|
calculateArea();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|