Skip to content

Commit

Permalink
update to v1.0.31-release
Browse files Browse the repository at this point in the history
  • Loading branch information
KOHGYLW committed May 15, 2020
1 parent 5c19709 commit ea59059
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Binary file modified kiftd-1.0.31-RELEASE.jar
Binary file not shown.
14 changes: 8 additions & 6 deletions webContext/js/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,8 @@ function doupload(count) {
xhr = new XMLHttpRequest();// 这东西类似于servlet里面的request

var fd = new FormData();// 用于封装文件数据的对象

fd.append("file", uploadfile);// 将文件对象添加到FormData对象中,字段名为uploadfile
fd.append("fname", fname);
fd.append("folderId", locationpath);
if (repeModelList != null && repeModelList[fname] != null) {
if (repeModelList[fname] == 'skip') {
Expand Down Expand Up @@ -3009,7 +3009,8 @@ function getDownloadURL() {
+ window.location.host
+ "/externalLinksController/downloadFileByKey/"
+ encodeURIComponent(getDownloadFileName.replace(
/\'/g, '')) + "?dkey=" + result;
/\'/g, '').replace(/\r/g, "").replace(
/\n/g, "")) + "?dkey=" + result;
// 显示链接内容
$("#downloadHrefBox").html(
"<a href='" + dlurl + "'>" + dlurl + "</a>");
Expand Down Expand Up @@ -3535,13 +3536,14 @@ function getFileChain(fileId, fileName) {
window.location.href = "prv/login.html";
break;
default:
var getChainFileName = fileName.replace("#", "%23").replace(
"%", "%25").replace("?", "%3F");
$("#fileChainTextarea").text(
encodeURI(window.location.protocol + "//"
window.location.protocol
+ "//"
+ window.location.host
+ "/externalLinksController/chain/"
+ getChainFileName + "?ckey=")
+ encodeURIComponent(fileName
.replace(/\'/g, '').replace(/\r/g, "")
.replace(/\n/g, "")) + "?ckey="
+ encodeURIComponent(result));
$("#copyChainBtn").attr('disabled', false);
break;
Expand Down
Loading

0 comments on commit ea59059

Please sign in to comment.