|
|
@@ -10,8 +10,9 @@
|
|
|
//编辑
|
|
|
var id = "${omCandidate.id}";
|
|
|
var mode = "${mode}";
|
|
|
- if(id && "${omCandidate.hasTattooing}"){
|
|
|
- $("#tattooingDetail").removeAttr('readOnly')
|
|
|
+ var hasTattooing = "${omCandidate.hasTattooing}";
|
|
|
+ if(hasTattooing=="true"){
|
|
|
+ $("#tattooingDetailDiv").show();
|
|
|
}
|
|
|
if(id != null && id != '' && (mode == 'edit' || mode == 'view' || mode == 'rePublish')){
|
|
|
$(".t_h_s i").html($(".tattooing_detail").val().length);
|
|
|
@@ -93,10 +94,9 @@
|
|
|
//纹身选项为无则纹身描述无法填写
|
|
|
function changeTattooingDetail(){
|
|
|
if($("#hasTattooing").val()=="false"){
|
|
|
- $("#tattooingDetail").attr('readOnly',true);
|
|
|
- $("#tattooingDetail").val(' ');
|
|
|
+ $("#tattooingDetailDiv").hide();
|
|
|
}else{
|
|
|
- $("#tattooingDetail").removeAttr('readOnly')
|
|
|
+ $("#tattooingDetailDiv").show();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -200,10 +200,10 @@
|
|
|
</form:select>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form-group col-sm-6">
|
|
|
+ <div class="form-group col-sm-6" id="tattooingDetailDiv" style="display:none">
|
|
|
<label class="col-sm-3 control-label">纹身描述:</label>
|
|
|
<div class="col-sm-3">
|
|
|
- <form:textarea path="tattooingDetail" readOnly="true" id="tattooingDetail" htmlEscape="false" rows="4" class="form-control input-sm tattooing_detail" maxlength="100" placeholder="请对纹身情况进行描述"/>
|
|
|
+ <form:textarea path="tattooingDetail" htmlEscape="false" rows="4" class="form-control input-sm tattooing_detail" maxlength="100" placeholder="请对纹身情况进行描述"/>
|
|
|
<span class="t_h_s" style="float: right"><i>0</i>/100</span>
|
|
|
</div>
|
|
|
</div>
|