mirror of
https://github.com/MCSManager/MCSManager.git
synced 2025-03-19 16:40:22 +08:00
修复 FireFox 兼容性问题
This commit is contained in:
parent
35b76e418f
commit
a1f35e492c
@ -92,14 +92,13 @@
|
||||
tools.popWindow("已复制到临时区域,使用粘贴即可移动到当前目录");
|
||||
break;
|
||||
case "粘贴":
|
||||
functionMudule.paste();
|
||||
location.reload();
|
||||
//BUG Note 刷新必须写在then中
|
||||
functionMudule.paste().then(() => location.reload());
|
||||
break;
|
||||
case "删除":
|
||||
let filestack = this.getFileStack(); //BUG Note:this 上下文不可出现在异步
|
||||
tools.confirm("您确定要删除这(些)文件吗?", () => {
|
||||
functionMudule.remove(filestack);
|
||||
location.reload();
|
||||
functionMudule.remove(filestack).then(() => location.reload());
|
||||
});
|
||||
break;
|
||||
case "重命名":
|
||||
@ -109,14 +108,12 @@
|
||||
}
|
||||
let stack = this.getFileStack();
|
||||
tools.prompt("重命名", (newName) => {
|
||||
functionMudule.rename(stack, newName);
|
||||
location.reload();
|
||||
functionMudule.rename(stack, newName).then(() => location.reload());
|
||||
});
|
||||
break;
|
||||
case "新建目录":
|
||||
tools.prompt("新的目录名", (newDirName) => {
|
||||
functionMudule.mkdir(newDirName);
|
||||
location.reload();
|
||||
functionMudule.mkdir(newDirName).then(() => location.reload());
|
||||
});
|
||||
break;
|
||||
case "退出":
|
||||
|
@ -26,11 +26,11 @@ class Ajax {
|
||||
|
||||
|
||||
ajax() {
|
||||
let that = this;
|
||||
var that = this;
|
||||
if (typeof this.parameter['data'] == "object")
|
||||
this.parameter['data'] = JSON.stringify(this.parameter['data']);
|
||||
|
||||
console.log("Ajax:", this.parameter.data);
|
||||
console.log("发起 Ajax:", this.parameter['url'], "数据:" + this.parameter.data);
|
||||
$.ajax({
|
||||
type: this.parameter['type'] || "POST",
|
||||
url: encodeURI(this.parameter['url']),
|
||||
@ -42,6 +42,7 @@ class Ajax {
|
||||
that.success(data);
|
||||
},
|
||||
error: function (XML, textStatus, errorThrown) {
|
||||
console.log("error: function (XML, textStatus, errorThrown) {")
|
||||
that.error(XML, textStatus, errorThrown);
|
||||
},
|
||||
cache: this.parameter['cache'] || false
|
||||
|
14531
public/onlinefs_public/dist/app.js
vendored
14531
public/onlinefs_public/dist/app.js
vendored
File diff suppressed because one or more lines are too long
2
public/onlinefs_public/dist/app.js.map
vendored
2
public/onlinefs_public/dist/app.js.map
vendored
File diff suppressed because one or more lines are too long
@ -47,7 +47,7 @@
|
||||
|
||||
<!--URL 处理函数-->
|
||||
<script type="text/javascript" src="../common/URL.js"></script>
|
||||
<script type="text/javascript" src="static/es6-promise.auto.min.js"></script>
|
||||
<!-- <script type="text/javascript" src="static/es6-promise.auto.min.js"></script> -->
|
||||
<script type="text/javascript" src="static/jquery-3.2.1.min.js"></script>
|
||||
<script type="text/javascript" src="dist/app.js"></script>
|
||||
</body>
|
||||
|
@ -33,8 +33,8 @@ module.exports = {
|
||||
exclude: /node_modules/
|
||||
}
|
||||
]
|
||||
},
|
||||
plugins: [
|
||||
new uglify()
|
||||
]
|
||||
}
|
||||
// plugins: [
|
||||
// new uglify()
|
||||
// ]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user