mirror of
https://github.com/9001/copyparty.git
synced 2026-06-20 13:12:26 -06:00
align grid and list view drag behavior
This commit is contained in:
parent
50d2f8b149
commit
1dd2bbb329
|
|
@ -11023,8 +11023,15 @@ var drag = (function() {
|
||||||
current = e.target;
|
current = e.target;
|
||||||
r.no_warn = true;
|
r.no_warn = true;
|
||||||
|
|
||||||
clmod(current, "sel", true);
|
if(!clgot(current, "sel"))
|
||||||
msel.selui();
|
{
|
||||||
|
msel.so = msel.pr = null;
|
||||||
|
var trs = QSA('#files tbody tr');
|
||||||
|
for (var a = 0, aa = trs.length; a < aa; a++)
|
||||||
|
clmod(trs[a], 'sel', false);
|
||||||
|
clmod(current, "sel", true);
|
||||||
|
msel.selui();
|
||||||
|
}
|
||||||
|
|
||||||
e.dataTransfer.setData("text/plain", r.getFilesString());
|
e.dataTransfer.setData("text/plain", r.getFilesString());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue