mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-07-31 21:26:23 +08:00
Merge pull request #3165 from blacktear23/reload-bug-fix
This commit is contained in:
commit
0a8b3948db
@ -225,6 +225,10 @@
|
||||
handleFiles(files);
|
||||
}
|
||||
|
||||
function reloadPage() {
|
||||
window.location.reload(true);
|
||||
}
|
||||
|
||||
var uploadList = {};
|
||||
|
||||
function handleFiles(files) {
|
||||
@ -277,7 +281,7 @@
|
||||
}
|
||||
if (allFinish) {
|
||||
console.log('All Finish');
|
||||
window.location.reload();
|
||||
reloadPage();
|
||||
}
|
||||
}
|
||||
|
||||
@ -318,7 +322,7 @@
|
||||
xhr.open('POST', url, false);
|
||||
xhr.setRequestHeader('Content-Type', '');
|
||||
xhr.send();
|
||||
window.location.reload();
|
||||
reloadPage();
|
||||
}
|
||||
|
||||
function handleRename(originName, basePath) {
|
||||
@ -333,7 +337,7 @@
|
||||
xhr.open('POST', url, false);
|
||||
xhr.setRequestHeader('Content-Type', '');
|
||||
xhr.send();
|
||||
window.location.reload();
|
||||
reloadPage();
|
||||
}
|
||||
|
||||
function handleDelete(path) {
|
||||
@ -348,7 +352,7 @@
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open('DELETE', url, false);
|
||||
xhr.send();
|
||||
window.location.reload();
|
||||
reloadPage();
|
||||
}
|
||||
</script>
|
||||
</html>
|
||||
|
Loading…
Reference in New Issue
Block a user