mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
ui: fix mkdir race when navpane is closed
This commit is contained in:
parent
3b4dfe326f
commit
8399e95bda
|
@ -3154,7 +3154,7 @@ var treectl = (function () {
|
||||||
|
|
||||||
treectl.goto = function (url, push) {
|
treectl.goto = function (url, push) {
|
||||||
get_tree("", url, true);
|
get_tree("", url, true);
|
||||||
reqls(url, push);
|
reqls(url, push, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_tree(top, dst, rst) {
|
function get_tree(top, dst, rst) {
|
||||||
|
@ -3282,7 +3282,7 @@ var treectl = (function () {
|
||||||
reqls(this.getAttribute('href'), true);
|
reqls(this.getAttribute('href'), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
function reqls(url, hpush) {
|
function reqls(url, hpush, no_tree) {
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.top = url;
|
xhr.top = url;
|
||||||
xhr.hpush = hpush;
|
xhr.hpush = hpush;
|
||||||
|
@ -3290,7 +3290,7 @@ var treectl = (function () {
|
||||||
xhr.open('GET', xhr.top + '?ls' + (treectl.dots ? '&dots' : ''), true);
|
xhr.open('GET', xhr.top + '?ls' + (treectl.dots ? '&dots' : ''), true);
|
||||||
xhr.onreadystatechange = recvls;
|
xhr.onreadystatechange = recvls;
|
||||||
xhr.send();
|
xhr.send();
|
||||||
if (hpush)
|
if (hpush && !no_tree)
|
||||||
get_tree('.', xhr.top);
|
get_tree('.', xhr.top);
|
||||||
|
|
||||||
enspin(thegrid.en ? '#gfiles' : '#files');
|
enspin(thegrid.en ? '#gfiles' : '#files');
|
||||||
|
|
Loading…
Reference in a new issue