|
@@ -470,13 +470,16 @@
|
|
|
$("#recruitPlanYear").attr("disabled",true);
|
|
|
}
|
|
|
if (!$.common.isEmpty(declaration.attachment)) {
|
|
|
- $("#annex1").text(getFileName(declaration.attachment, "SYDW"));
|
|
|
- var url = encodeURI(disposeUrl(declaration.attachment, "SYDW"), "utf-8");
|
|
|
- $("#annex").val(disposeUrl(declaration.attachment, "SYDW"));
|
|
|
- $("#annex1").attr("onclick", 'openPDF(\'' + url + '\')');
|
|
|
- if (getFileName(declaration.attachment, "SYDW").length!=0){
|
|
|
- $("#trasch").css("display","")
|
|
|
- $("#annex1").css("width","40%");
|
|
|
+ var attachmentUrl=disposeUrl(declaration.attachment,"SYDW")
|
|
|
+ if (!$.common.isEmpty(attachmentUrl)) {
|
|
|
+ $("#annex1").text(getFileName(declaration.attachment, "SYDW"));
|
|
|
+ var url = encodeURI(disposeUrl(declaration.attachment, "SYDW"), "utf-8");
|
|
|
+ $("#annex").val(disposeUrl(declaration.attachment, "SYDW"));
|
|
|
+ $("#annex1").attr("onclick", 'openPDF(\'' + url + '\')');
|
|
|
+ if (getFileName(declaration.attachment, "SYDW").length != 0) {
|
|
|
+ $("#trasch").css("display", "")
|
|
|
+ $("#annex1").css("width", "40%");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
});
|