mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 13:42:29 -06:00
misc compatibility fixes
This commit is contained in:
parent
86a7f06a97
commit
a9195ad186
|
|
@ -11027,7 +11027,7 @@ var drag = (function() {
|
||||||
elem.ondrop = function(e) {
|
elem.ondrop = function(e) {
|
||||||
if (!r.enabled) return;
|
if (!r.enabled) return;
|
||||||
ev(e);
|
ev(e);
|
||||||
if(e.dataTransfer && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
if (e.dataTransfer && e.dataTransfer.getData("text") && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
||||||
currLink = e.dataTransfer.getData("text");
|
currLink = e.dataTransfer.getData("text");
|
||||||
console.log("elem.ondrop: " + currLink);
|
console.log("elem.ondrop: " + currLink);
|
||||||
fileman.clip = currLink.split("\n");
|
fileman.clip = currLink.split("\n");
|
||||||
|
|
|
||||||
|
|
@ -1085,7 +1085,7 @@ function up2k_init(subtle) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function onovercmn(self, e, btn) {
|
function onovercmn(self, e, btn) {
|
||||||
if(e.dataTransfer.getData("text") && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
if(e.dataTransfer && e.dataTransfer.getData("text") && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
@ -1195,7 +1195,7 @@ function up2k_init(subtle) {
|
||||||
ev(e);
|
ev(e);
|
||||||
|
|
||||||
console.log(e.dataTransfer.getData("text"))
|
console.log(e.dataTransfer.getData("text"))
|
||||||
if(e.dataTransfer && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
if (e.dataTransfer && e.dataTransfer.getData("text") && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
||||||
var currLink = e.dataTransfer.getData("text");
|
var currLink = e.dataTransfer.getData("text");
|
||||||
console.log("wrap.ondrop: " + currLink);
|
console.log("wrap.ondrop: " + currLink);
|
||||||
fileman.clip = currLink.split("\n");
|
fileman.clip = currLink.split("\n");
|
||||||
|
|
|
||||||
|
|
@ -1752,6 +1752,8 @@ var toast = (function () {
|
||||||
scrolling = false,
|
scrolling = false,
|
||||||
obj = mknod('div', 'toast');
|
obj = mknod('div', 'toast');
|
||||||
|
|
||||||
|
clmod(obj, 'hide', true);
|
||||||
|
|
||||||
document.body.appendChild(obj);
|
document.body.appendChild(obj);
|
||||||
r.visible = false;
|
r.visible = false;
|
||||||
r.txt = null;
|
r.txt = null;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue