修复 FireFox 兼容性问题

This commit is contained in:
suwings 2018-02-06 11:41:58 +08:00
parent 35b76e418f
commit a1f35e492c
6 changed files with 14544 additions and 17 deletions

View File

@ -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 "退出":

View File

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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>

View File

@ -33,8 +33,8 @@ module.exports = {
exclude: /node_modules/
}
]
},
plugins: [
new uglify()
]
}
// plugins: [
// new uglify()
// ]
}