$.ajax({\r
type: "get",\r
url: "/Language/"+lang+".json",\r
- async: false\r
+ async: false,\r
+ cache: false\r
}).done(function(data){\r
_Language= data\r
});\r
"complate": "Complate",
"pleasewait": "Compressing files Please wait.",
"iscompress": "proceed with compression? FileSize: ",
- "toolargesize": "The capacity of the files exceeds the maximum file size of 2 GB and can not proceed."
+ "toolargesize": "The capacity of the files exceeds the maximum file size of 2 GB and can not proceed.",
+ "nofilesadded": "No files added."
}
"complate": "완료",
"pleasewait": "압축중입니다 잠시만 기다려주세요.",
"iscompress": "압축을 진행하시겠습니까? FileSize: ",
- "toolargesize": "파일들의 용량이 최대파일크기인 2GB를 넘어가서 진행할 수 없습니다."
+ "toolargesize": "파일들의 용량이 최대파일크기인 2GB를 넘어가서 진행할 수 없습니다.",
+ "nofilesadded": "추가된 파일이 없습니다."
}
//압축 시작(백단에 파일들과 파일정보 map 전송)
function RequestCompress() {
+ if (parseInt(filesSize, 10) === 0) {
+ alert(_Language["nofilesadded"]);
+ $(".modal").css("display", "none");
+ return false;
+ }
var size = (filesSize / 1024 / 1024).toFixed(2) + "MB";
if (filesSize > maxFileSize / 2) {
size = (filesSize / 1024 / 1024 / 1024).toFixed(1) + "GB";
}
- size = 100;
var format = "zip";
if (filesSize > maxFileSize) {
};
Getprogress();
+ } else {
+ $(".modal").css("display", "none");
}
}
"complate": "Complate",
"pleasewait": "Compressing files Please wait.",
"iscompress": "proceed with compression? FileSize: ",
- "toolargesize": "The capacity of the files exceeds the maximum file size of 2 GB and can not proceed."
+ "toolargesize": "The capacity of the files exceeds the maximum file size of 2 GB and can not proceed.",
+ "nofilesadded": "No files added."
}
"complate": "완료",
"pleasewait": "압축중입니다 잠시만 기다려주세요.",
"iscompress": "압축을 진행하시겠습니까? FileSize: ",
- "toolargesize": "파일들의 용량이 최대파일크기인 2GB를 넘어가서 진행할 수 없습니다."
+ "toolargesize": "파일들의 용량이 최대파일크기인 2GB를 넘어가서 진행할 수 없습니다.",
+ "nofilesadded": "추가된 파일이 없습니다."
}
//압축 시작(백단에 파일들과 파일정보 map 전송)
function RequestCompress() {
+ if (parseInt(filesSize, 10) === 0) {
+ alert(_Language["nofilesadded"]);
+ $(".modal").css("display", "none");
+ return false;
+ }
var size = (filesSize / 1024 / 1024).toFixed(2) + "MB";
if (filesSize > maxFileSize / 2) {
size = (filesSize / 1024 / 1024 / 1024).toFixed(1) + "GB";
};
Getprogress();
+ } else {
+ $(".modal").css("display", "none");
}
}