修改忘记添加重名命input

This commit is contained in:
suwings 2018-01-20 14:23:42 +08:00
parent 05d5dbdecb
commit 4a7dbfdc76
3 changed files with 14 additions and 11 deletions

View File

@ -110,18 +110,17 @@
tools.popWindow("非法操作,不能同时重命名多个文件或未选择文件");
break;
}
functionMudule.rename(
this.getFileStack(),
prompt("对于您选中的文件,请输入一个新的文件/目录名", "")
);
location.reload();
let stack = this.getFileStack();
tools.prompt("重命名", (newName) => {
functionMudule.rename(stack, newName);
location.reload();
}, () => location.reload());
break;
case "新建目录":
tools.prompt("新的目录名", (newDirName) => {
functionMudule.mkdir(newDirName);
location.reload();
});
break;
case "退出":
window.location.href = "/fs_auth/logout";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long