mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 21:43:08 -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 };
|
||||
}
|
||||
|
||||
function sel_toggle(el) {
|
||||
clmod(el, 'sel', 't');
|
||||
function sel_toggle(el, usel) {
|
||||
var m = usel ? true : 't';
|
||||
|
||||
clmod(el, 'sel', m);
|
||||
var eref = el.getAttribute('ref');
|
||||
if (eref) {
|
||||
var ehidden = ebi(eref);
|
||||
if (ehidden) {
|
||||
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');
|
||||
for (var a = 0, aa = faf.length; a < aa; a++)
|
||||
if (bob(sbrect, faf[a].getBoundingClientRect()))
|
||||
sel_toggle(faf[a]);
|
||||
sel_toggle(faf[a], e.shiftKey);
|
||||
msel.selui();
|
||||
}
|
||||
ev(e);
|
||||
|
|
|
|||
Loading…
Reference in a new issue