mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -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;
|
||||
r.no_warn = true;
|
||||
|
||||
clmod(current, "sel", true);
|
||||
msel.selui();
|
||||
if(!clgot(current, "sel"))
|
||||
{
|
||||
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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue