mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
range-select fixes:
* dont crash when shiftclicking between folders * remember origin when lazyloading more files
This commit is contained in:
parent
cc0c9839eb
commit
0896c5295c
|
@ -5848,6 +5848,8 @@ var treectl = (function () {
|
|||
}
|
||||
if (sel.length)
|
||||
msel.loadsel(sel);
|
||||
else
|
||||
msel.origin_id(null);
|
||||
|
||||
setTimeout(eval_hash, 1);
|
||||
}
|
||||
|
@ -6718,7 +6720,9 @@ var msel = (function () {
|
|||
};
|
||||
|
||||
r.loadsel = function (sel) {
|
||||
r.so = r.pr = null;
|
||||
if (!sel || !r.so || !ebi(r.so))
|
||||
r.so = r.pr = null;
|
||||
|
||||
r.sel = [];
|
||||
r.load();
|
||||
|
||||
|
|
Loading…
Reference in a new issue