mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 05:32:25 -06:00
crash fix when dragging text
This commit is contained in:
parent
335d02a7c0
commit
ff26c10a12
|
|
@ -544,6 +544,7 @@ html.y #path {
|
||||||
}
|
}
|
||||||
#path a.dtarget {
|
#path a.dtarget {
|
||||||
text-shadow: var(--f-sel-sh) 0 0 5px;
|
text-shadow: var(--f-sel-sh) 0 0 5px;
|
||||||
|
background: color-mix(var(--a), transparent);
|
||||||
}
|
}
|
||||||
#path #entree {
|
#path #entree {
|
||||||
margin-left: -.7em;
|
margin-left: -.7em;
|
||||||
|
|
@ -721,6 +722,7 @@ html.y #files span.fsz_P { font-weight: bold }
|
||||||
}
|
}
|
||||||
#files tr.dtarget {
|
#files tr.dtarget {
|
||||||
box-shadow: 0 0 5px 0 var(--f-sel-sh) inset;
|
box-shadow: 0 0 5px 0 var(--f-sel-sh) inset;
|
||||||
|
background: color-mix(var(--a), transparent);
|
||||||
}
|
}
|
||||||
#files tr.dtarget td {
|
#files tr.dtarget td {
|
||||||
background: none;
|
background: none;
|
||||||
|
|
@ -1095,6 +1097,7 @@ html:not(.e) #ggrid>a.dir:before {
|
||||||
}
|
}
|
||||||
#ggrid a.dtarget {
|
#ggrid a.dtarget {
|
||||||
box-shadow: 0 0 5px 0 var(--f-sel-sh);
|
box-shadow: 0 0 5px 0 var(--f-sel-sh);
|
||||||
|
background: color-mix(var(--a), transparent);
|
||||||
}
|
}
|
||||||
#files tr.sel a,
|
#files tr.sel a,
|
||||||
#files tr.sel a.play {
|
#files tr.sel a.play {
|
||||||
|
|
@ -1973,6 +1976,7 @@ html.a .btn {
|
||||||
}
|
}
|
||||||
#tree li a.dtarget {
|
#tree li a.dtarget {
|
||||||
box-shadow: 0 0 5px 0 var(--f-sel-sh) inset;
|
box-shadow: 0 0 5px 0 var(--f-sel-sh) inset;
|
||||||
|
background: color-mix(var(--a) 30%, transparent);
|
||||||
}
|
}
|
||||||
#tree ul a.sel {
|
#tree ul a.sel {
|
||||||
background: #000;
|
background: #000;
|
||||||
|
|
|
||||||
|
|
@ -10589,9 +10589,15 @@ var drag = (function() {
|
||||||
var f = files[i];
|
var f = files[i];
|
||||||
f.draggable = true;
|
f.draggable = true;
|
||||||
f.ondragstart = function(e) {
|
f.ondragstart = function(e) {
|
||||||
current = e.target;
|
try{
|
||||||
currLink = basenames(current.querySelector("td:nth-child(2) a").href.split("?"));
|
currLink = basenames(e.target.querySelector("td:nth-child(2) a").href.split("?"));
|
||||||
r.no_warn = true;
|
current = e.target;
|
||||||
|
r.no_warn = true;
|
||||||
|
}
|
||||||
|
catch(ex){
|
||||||
|
console.log(e.target)
|
||||||
|
console.log(ex)
|
||||||
|
}
|
||||||
};
|
};
|
||||||
f.ondragend = function() {
|
f.ondragend = function() {
|
||||||
r.no_warn = false;
|
r.no_warn = false;
|
||||||
|
|
@ -10614,10 +10620,16 @@ var drag = (function() {
|
||||||
var f = files[i];
|
var f = files[i];
|
||||||
f.draggable = true;
|
f.draggable = true;
|
||||||
f.ondragstart = function(e) {
|
f.ondragstart = function(e) {
|
||||||
var a = ebi(e.target.getAttribute("ref"));
|
try{
|
||||||
current = a.closest("tr");
|
var a = ebi(e.target.getAttribute("ref"));
|
||||||
currLink = basenames(a.href.split("?"));
|
current = a.closest("tr");
|
||||||
r.no_warn = true;
|
currLink = basenames(a.href.split("?"));
|
||||||
|
r.no_warn = true;
|
||||||
|
}
|
||||||
|
catch(ex){
|
||||||
|
console.log(e.target)
|
||||||
|
console.log(ex)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
f.ondragend = function() {
|
f.ondragend = function() {
|
||||||
r.no_warn = false;
|
r.no_warn = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue