|
|
@@ -137,18 +137,31 @@ function patientNewInit() {
|
|
|
function setEventHandler() {
|
|
|
|
|
|
//체크yes시 content입력 처리
|
|
|
- $( "li.full input[type='checkbox']" ).on( "click", function(){
|
|
|
+ $( "li.full input[type='checkbox'][name='cancerCheck']" ).on( "click", function(){
|
|
|
var $this = $( this );
|
|
|
console.log("!!!!!!!!!!!!!!");
|
|
|
|
|
|
- $this.closest( "div" ).find( "input[type='text']" ).prop( "readonly", $this.is( ":checked" ) === false );
|
|
|
+ $this.closest( "div" ).find( "input[type='text'][name='cancerName']" ).prop( "readonly", $this.is( ":checked" ) === false );
|
|
|
|
|
|
if( $this.is( ":checked" ) === false ) {
|
|
|
$this.closest( "div" ).find( "input[type='text']" ).val( "" );
|
|
|
} else {
|
|
|
$this.closest( "div" ).find( "input[type='text']" ).focus();
|
|
|
};
|
|
|
- });
|
|
|
+ });
|
|
|
+
|
|
|
+ $( "li.full input[type='checkbox'][name='etcCheckDisease']" ).on( "click", function(){
|
|
|
+ var $this = $( this );
|
|
|
+ console.log("!!!!!!!!!!!!!!");
|
|
|
+
|
|
|
+ $this.closest( "div" ).find( "input[type='text'][name='etcContentDisease']" ).prop( "readonly", $this.is( ":checked" ) === false );
|
|
|
+
|
|
|
+ if( $this.is( ":checked" ) === false ) {
|
|
|
+ $this.closest( "div" ).find( "input[type='text']" ).val( "" );
|
|
|
+ } else {
|
|
|
+ $this.closest( "div" ).find( "input[type='text']" ).focus();
|
|
|
+ };
|
|
|
+ });
|
|
|
|
|
|
//기저질환유무 처리
|
|
|
$( "input[name='basalDiseaseYn']" ).on( "click", function(){
|
|
|
@@ -300,14 +313,21 @@ function setEventHandler() {
|
|
|
<label for="allergy"><span></span>알레르기</label>
|
|
|
</li>
|
|
|
<li>
|
|
|
+ <input type="checkbox" id="kidney" name="kidneyDisease" value="Y" />
|
|
|
+ <label for="kidney"><span></span>신장질환</label>
|
|
|
+ </li>
|
|
|
+ <li class="full">
|
|
|
<input type="checkbox" id="cancer" name="cancerCheck" value="Y" />
|
|
|
<label for="cancer"><span></span>암</label>
|
|
|
+ <div class="comment label-readonly-check">
|
|
|
+ <input type="text" name="cancerName" placeholder="암명을 입력하세요.">
|
|
|
+ </div>
|
|
|
</li>
|
|
|
<li class="full">
|
|
|
<input type="checkbox" id="diseaseEtc" name="etcCheckDisease" value="Y" />
|
|
|
<label for="diseaseEtc"><span></span>기타</label>
|
|
|
<div class="comment label-readonly-check">
|
|
|
- <input type="text" name="etcContentDisease" placeholder="기타 증상 및 암명/수술명을 입력하세요.">
|
|
|
+ <input type="text" name="etcContentDisease" placeholder="기타 증상을 입력하세요.">
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|