diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-06-10 07:47:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-10 07:47:43 -0700 |
| commit | 0a8b3948db054d793844080888aecf4d3eaf494a (patch) | |
| tree | b7ec94fadd7d8e30afd58d3c75ca9acfbdff6660 | |
| parent | 3b8306c59423867cd973380f168f2b743d09c7a6 (diff) | |
| parent | 83f8cdd5cb23b3d58bdd18200ac63380d8c38c77 (diff) | |
| download | seaweedfs-0a8b3948db054d793844080888aecf4d3eaf494a.tar.xz seaweedfs-0a8b3948db054d793844080888aecf4d3eaf494a.zip | |
Merge pull request #3165 from blacktear23/reload-bug-fix
| -rw-r--r-- | weed/server/filer_ui/filer.html | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/weed/server/filer_ui/filer.html b/weed/server/filer_ui/filer.html index 785f82887..f9c35440e 100644 --- a/weed/server/filer_ui/filer.html +++ b/weed/server/filer_ui/filer.html @@ -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> |
