mirror of
https://github.com/9001/copyparty.git
synced 2026-06-22 05:53:29 -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);
|
ev(e);
|
||||||
if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
||||||
currLink = e.dataTransfer.getData("text/plain");
|
currLink = e.dataTransfer.getData("text/plain");
|
||||||
console.log(currLink);
|
console.log("elem.ondrop: " + currLink);
|
||||||
fileman.clip = currLink.split("\n");
|
fileman.clip = currLink.split("\n");
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
@ -11066,7 +11066,7 @@ var drag = (function() {
|
||||||
msel.so = msel.pr = null;
|
msel.so = msel.pr = null;
|
||||||
var trs = QSA('#files tbody tr');
|
var trs = QSA('#files tbody tr');
|
||||||
for (var a = 0, aa = trs.length; a < aa; a++)
|
for (var a = 0, aa = trs.length; a < aa; a++)
|
||||||
clmod(trs[a], 'sel', fun);
|
clmod(trs[a], 'sel', false);
|
||||||
clmod(current, "sel", true);
|
clmod(current, "sel", true);
|
||||||
msel.selui();
|
msel.selui();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1197,7 +1197,7 @@ function up2k_init(subtle) {
|
||||||
console.log(e.dataTransfer.getData("text/plain"))
|
console.log(e.dataTransfer.getData("text/plain"))
|
||||||
if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
||||||
var currLink = e.dataTransfer.getData("text/plain");
|
var currLink = e.dataTransfer.getData("text/plain");
|
||||||
console.log(currLink);
|
console.log("wrap.ondrop: " + currLink);
|
||||||
fileman.clip = currLink.split("\n");
|
fileman.clip = currLink.split("\n");
|
||||||
|
|
||||||
fileman.cut();
|
fileman.cut();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue