mirror of https://gitee.com/zhang_1334717033/kiftd
update to v1.0.6v1
parent
fbd06f2e6d
commit
45adc018bd
|
|
@ -72,6 +72,11 @@ _注:kift为功能性内核的开发代号,其应用版本被称为kiftd_
|
|||
|
||||
> 提示:当您更新版本后,请手动清除浏览器的缓存,之后刷新网盘主页以确保数据文件保持最新!否则可能导致新版页面功能无法使用。
|
||||
|
||||
### 优化更新v1.0.6v1
|
||||
本次更新主要针对v1.0.6版本中出现的问题进行进一步优化,推荐所有用户升级。
|
||||
+ 修正了上传窗口逻辑不正确的问题,现在它能正确应对操作失误了。
|
||||
+ 优化了的回车键功能,回车键现在能够作为搜索的快捷键使用了。
|
||||
|
||||
### 优化更新v1.0.6
|
||||
本次更新主要为解决日常使用过程中出现的问题和BUG,推荐所有用户升级。
|
||||
+ 修正了IE11浏览器无法上传文件的BUG——现在,您可以使用IE浏览器正常上传文件了(不过无法拖拽上传,该功能依旧需要现代浏览器支持),同时您也可以正常在IE11浏览器中预览图片和播放音乐。注意:即使增加了对IE的兼容性,不过考虑到目前微软已经停止对IE的支持,因此kiftd仍旧推荐您使用一款现代浏览器进行访问和操作。
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -53,7 +53,13 @@ $(function() {
|
|||
$("body").keypress(function(e) {
|
||||
var keyCode = e.keyCode ? e.keyCode : e.which ? e.which : e.charCode;
|
||||
if(keyCode == 13) {
|
||||
$(".shown .btn-primary").click();
|
||||
var g=$(".shown .btn-primary");
|
||||
if(g.get(0)!=null){
|
||||
g.click();
|
||||
}else{
|
||||
doSearchFile();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
// 开启登陆模态框自动聚焦账户输入框
|
||||
|
|
@ -211,21 +217,6 @@ $(function() {
|
|||
$("#fim_folderCreationDate").text(f.folderCreationDate);
|
||||
$("#fim_statistics").text("共包含 "+folderView.folderList.length+" 个文件夹, "+folderView.fileList.length+" 个文件。");
|
||||
});
|
||||
// 开启上传模态框自动还原上传信息
|
||||
$('#uploadFileModal').on('show.bs.modal', function(e) {
|
||||
isUpLoading=true;
|
||||
$("#uploadfile").val("");
|
||||
$("#filepath").val("");
|
||||
$("#pros").width("0%");
|
||||
$("#umbutton").attr('disabled', false);
|
||||
$("#filecount").text("");
|
||||
$("#uploadstatus").text("");
|
||||
$("#selectcount").text("");
|
||||
});
|
||||
//关闭模态框自动还原状态
|
||||
$('#uploadFileModal').on('hidden.bs.modal', function(e) {
|
||||
isUpLoading=false;
|
||||
});
|
||||
});
|
||||
|
||||
// 全局请求失败提示
|
||||
|
|
@ -916,7 +907,16 @@ function showUploadFileModel() {
|
|||
$("#uploadFileAlert").removeClass("alert");
|
||||
$("#uploadFileAlert").removeClass("alert-danger");
|
||||
$("#uploadFileAlert").text("");
|
||||
$('#uploadFileModal').modal('toggle');
|
||||
if(isUpLoading==false){
|
||||
$("#uploadfile").val("");
|
||||
$("#filepath").val("");
|
||||
$("#pros").width("0%");
|
||||
$("#umbutton").attr('disabled', false);
|
||||
$("#filecount").text("");
|
||||
$("#uploadstatus").text("");
|
||||
$("#selectcount").text("");
|
||||
}
|
||||
$('#uploadFileModal').modal('show');
|
||||
}
|
||||
|
||||
// 点击文本框触发input:file选择文件动作
|
||||
|
|
@ -949,49 +949,53 @@ function showfilepath() {
|
|||
|
||||
// 检查是否能够上传
|
||||
function checkUploadFile() {
|
||||
|
||||
$("#umbutton").attr('disabled', true);
|
||||
|
||||
$("#uploadFileAlert").removeClass("alert");
|
||||
$("#uploadFileAlert").removeClass("alert-danger");
|
||||
$("#uploadFileAlert").text("");
|
||||
|
||||
var filenames = new Array();
|
||||
for (var i = 0; i < fs.length; i++) {
|
||||
filenames[i] = fs[i].name.replace(/^.+?\\([^\\]+?)?$/gi, "$1");
|
||||
}
|
||||
var namelist = JSON.stringify(filenames);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
dataType : "text",
|
||||
data : {
|
||||
folderId : locationpath,
|
||||
namelist : namelist
|
||||
},
|
||||
url : "homeController/checkUploadFile.ajax",
|
||||
success : function(result) {
|
||||
if (result == "mustLogin") {
|
||||
window.location.href = "login.html";
|
||||
} else {
|
||||
if (result == "errorParameter") {
|
||||
showUploadFileAlert("提示:参数不正确,无法开始上传");
|
||||
} else if (result == "noAuthorized") {
|
||||
showUploadFileAlert("提示:您的操作未被授权,无法开始上传");
|
||||
} else if (result.startsWith("duplicationFileName:")) {
|
||||
showUploadFileAlert("提示:本路径下已存在同名的文件:["
|
||||
+ result.substring(20) + "],无法开始上传");
|
||||
} else if (result == "permitUpload") {
|
||||
doupload(1);
|
||||
} else {
|
||||
if(isUpLoading==false){
|
||||
if(fs!=null&&fs.length>0){
|
||||
isUpLoading=true;
|
||||
$("#umbutton").attr('disabled', true);
|
||||
$("#uploadFileAlert").removeClass("alert");
|
||||
$("#uploadFileAlert").removeClass("alert-danger");
|
||||
$("#uploadFileAlert").text("");
|
||||
var filenames = new Array();
|
||||
for (var i = 0; i < fs.length; i++) {
|
||||
filenames[i] = fs[i].name.replace(/^.+?\\([^\\]+?)?$/gi, "$1");
|
||||
}
|
||||
var namelist = JSON.stringify(filenames);
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
dataType : "text",
|
||||
data : {
|
||||
folderId : locationpath,
|
||||
namelist : namelist
|
||||
},
|
||||
url : "homeController/checkUploadFile.ajax",
|
||||
success : function(result) {
|
||||
if (result == "mustLogin") {
|
||||
window.location.href = "login.html";
|
||||
} else {
|
||||
if (result == "errorParameter") {
|
||||
showUploadFileAlert("提示:参数不正确,无法开始上传");
|
||||
} else if (result == "noAuthorized") {
|
||||
showUploadFileAlert("提示:您的操作未被授权,无法开始上传");
|
||||
} else if (result.startsWith("duplicationFileName:")) {
|
||||
showUploadFileAlert("提示:本路径下已存在同名的文件:["
|
||||
+ result.substring(20) + "],无法开始上传");
|
||||
} else if (result == "permitUpload") {
|
||||
doupload(1);
|
||||
} else {
|
||||
showUploadFileAlert("提示:出现意外错误,无法开始上传");
|
||||
}
|
||||
}
|
||||
},
|
||||
error : function() {
|
||||
showUploadFileAlert("提示:出现意外错误,无法开始上传");
|
||||
}
|
||||
}
|
||||
},
|
||||
error : function() {
|
||||
showUploadFileAlert("提示:出现意外错误,无法开始上传");
|
||||
});
|
||||
}else{
|
||||
showUploadFileAlert("提示:您未选择任何文件,无法开始上传");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
var xhr;
|
||||
|
|
@ -1034,6 +1038,7 @@ function doupload(count) {
|
|||
doupload(count + 1);
|
||||
} else {
|
||||
// 清空所有提示信息,还原上传窗口
|
||||
isUpLoading=false;
|
||||
$("#uploadfile").val("");
|
||||
$("#filepath").val("");
|
||||
$("#pros").width("0%");
|
||||
|
|
@ -1049,7 +1054,8 @@ function doupload(count) {
|
|||
+ "]上传失败,上传被中断。");
|
||||
$("#uls_" + count).text("[失败]");
|
||||
} else {
|
||||
$('#uploadFileModal').modal('hide');
|
||||
showUploadFileAlert("提示:出现意外错误,文件:[" + fname
|
||||
+ "]上传失败,上传被中断。");
|
||||
$("#uls_" + count).text("[失败]");
|
||||
}
|
||||
} else {
|
||||
|
|
@ -1075,6 +1081,7 @@ function uploadProgress(evt) {
|
|||
|
||||
// 显示上传文件状态提示
|
||||
function showUploadFileAlert(txt) {
|
||||
isUpLoading=false;
|
||||
$("#uploadFileAlert").addClass("alert");
|
||||
$("#uploadFileAlert").addClass("alert-danger");
|
||||
$("#uploadFileAlert").text(txt);
|
||||
|
|
@ -1222,6 +1229,7 @@ function showRenameFolderAlert(txt) {
|
|||
|
||||
// 取消上传
|
||||
function abortUpload() {
|
||||
isUpLoading=false;
|
||||
if (xhr != null) {
|
||||
xhr.abort();
|
||||
$("#umbutton").attr('disabled', false);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue