mirror of
https://github.com/9001/copyparty.git
synced 2026-02-27 05:53:11 -07:00
dsel: additive select
This commit is contained in:
parent
c4210e7281
commit
f6250d967e
|
|
@ -9790,14 +9790,16 @@ function reload_browser() {
|
||||||
return { x: touch.clientX, y: touch.clientY };
|
return { x: touch.clientX, y: touch.clientY };
|
||||||
}
|
}
|
||||||
|
|
||||||
function sel_toggle(el) {
|
function sel_toggle(el, usel) {
|
||||||
clmod(el, 'sel', 't');
|
var m = usel ? true : 't';
|
||||||
|
|
||||||
|
clmod(el, 'sel', m);
|
||||||
var eref = el.getAttribute('ref');
|
var eref = el.getAttribute('ref');
|
||||||
if (eref) {
|
if (eref) {
|
||||||
var ehidden = ebi(eref);
|
var ehidden = ebi(eref);
|
||||||
if (ehidden) {
|
if (ehidden) {
|
||||||
var tr = ehidden.closest('tr');
|
var tr = ehidden.closest('tr');
|
||||||
if (tr) clmod(tr, 'sel', 't');
|
if (tr) clmod(tr, 'sel', m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -9902,7 +9904,7 @@ function reload_browser() {
|
||||||
var faf = QSA('#ggrid a');
|
var faf = QSA('#ggrid a');
|
||||||
for (var a = 0, aa = faf.length; a < aa; a++)
|
for (var a = 0, aa = faf.length; a < aa; a++)
|
||||||
if (bob(sbrect, faf[a].getBoundingClientRect()))
|
if (bob(sbrect, faf[a].getBoundingClientRect()))
|
||||||
sel_toggle(faf[a]);
|
sel_toggle(faf[a], e.shiftKey);
|
||||||
msel.selui();
|
msel.selui();
|
||||||
}
|
}
|
||||||
ev(e);
|
ev(e);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue