Ver Fonte

체크박스 체크되도록 class에 checked 추가

gagamel há 5 anos atrás
pai
commit
723b24e141

+ 2 - 0
style24.admin/src/main/webapp/WEB-INF/views/system/SampleFileForm.html

@@ -132,8 +132,10 @@
 
 		if (event.data.useYn == 'Y') {
 			$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', true);
+			$("#detailForm input:checkbox[name=chkUseYn]").parent().addClass('checked');
 		} else {
 			$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', false);
+			$("#detailForm input:checkbox[name=chkUseYn]").parent().removeClass('checked');
 		}
 		
 		$('#detailForm input:checkbox[name=chkUseYn]').attr('readonly', false);

+ 2 - 0
style24.admin/src/main/webapp/WEB-INF/views/system/SystemAlarmForm.html

@@ -189,8 +189,10 @@
 			$("#detailForm input[name=useYn]").val(event.data.useYn);
 			if (event.data.useYn == 'Y') {
 				$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', true);
+				$("#detailForm input:checkbox[name=chkUseYn]").parent().addClass('checked');
 			} else {
 				$("#detailForm input:checkbox[name=chkUseYn]").prop('checked', false);
+				$("#detailForm input:checkbox[name=chkUseYn]").parent().removeClass('checked');
 			}
 			
 			// 수신자 목록

+ 2 - 2
style24.admin/src/main/webapp/WEB-INF/views/system/UserDetailForm.html

@@ -203,14 +203,14 @@
 						<th>IP체크여부</th>
 						<td>
 							<input type="hidden" name="ipChkYn" th:value="${userInfo.ipChkYn}"/>
-							<label class="chkBox" th:checked="${userInfo.ipChkYn == 'Y'}"><input type="checkbox" name="chkIpChkYn" th:value="${userInfo.ipChkYn}" th:checked="${userInfo.ipChkYn == 'Y'}"/>IP체크</label>
+							<label th:class="${'chkBox' + (userInfo.ipChkYn == 'Y' ? ' checked' : '')}"><input type="checkbox" name="chkIpChkYn" th:value="${userInfo.ipChkYn}" th:checked="${userInfo.ipChkYn == 'Y'}"/>IP체크</label>
 						</td>
 					</tr>
 					<tr>
 						<th>사용여부</th>
 						<td>
 							<input type="hidden" name="useYn" th:value="${userInfo.useYn}"/>
-							<label class="chkBox" th:checked="${userInfo.useYn == 'Y'}"><input type="checkbox" name="chkUseYn" th:value="${userInfo.useYn}" th:checked="${userInfo.useYn == 'Y'}"/>사용</label>
+							<label th:class="${'chkBox' + (userInfo.useYn == 'Y' ? ' checked' : '')}"><input type="checkbox" name="chkUseYn" th:value="${userInfo.useYn}" th:checked="${userInfo.useYn == 'Y'}"/>사용</label>
 						</td>
 						<th>최종로그인일시</th>
 						<td th:text="*{loginLdt}">