mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
fix for removing selection of other elements on unselected drag
This commit is contained in:
parent
cba79caa48
commit
1e7c6bd46f
|
|
@ -10992,7 +10992,7 @@ var drag = (function() {
|
|||
ev(e);
|
||||
if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
||||
currLink = e.dataTransfer.getData("text/plain");
|
||||
console.log(currLink);
|
||||
console.log("elem.ondrop: " + currLink);
|
||||
fileman.clip = currLink.split("\n");
|
||||
}
|
||||
else{
|
||||
|
|
@ -11066,7 +11066,7 @@ var drag = (function() {
|
|||
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', fun);
|
||||
clmod(trs[a], 'sel', false);
|
||||
clmod(current, "sel", true);
|
||||
msel.selui();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1197,7 +1197,7 @@ function up2k_init(subtle) {
|
|||
console.log(e.dataTransfer.getData("text/plain"))
|
||||
if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
||||
var currLink = e.dataTransfer.getData("text/plain");
|
||||
console.log(currLink);
|
||||
console.log("wrap.ondrop: " + currLink);
|
||||
fileman.clip = currLink.split("\n");
|
||||
|
||||
fileman.cut();
|
||||
|
|
|
|||
Loading…
Reference in a new issue