mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 05:32:25 -06:00
fixed position of resize bar + IE fixes
This commit is contained in:
parent
6e9fcd9f9a
commit
986eeda89f
|
|
@ -2107,7 +2107,7 @@ html {
|
||||||
width: calc(100% + 2em);
|
width: calc(100% + 2em);
|
||||||
}
|
}
|
||||||
#reszbar {
|
#reszbar {
|
||||||
position: absolute;
|
position: fixed;
|
||||||
z-index: 25;
|
z-index: 25;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
|
|
@ -2119,6 +2119,7 @@ html {
|
||||||
cursor: ew-resize;
|
cursor: ew-resize;
|
||||||
touch-action: none;
|
touch-action: none;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
transition: opacity .1s;
|
||||||
}
|
}
|
||||||
#reszbar:hover{
|
#reszbar:hover{
|
||||||
opacity: .6;
|
opacity: .6;
|
||||||
|
|
|
||||||
|
|
@ -6824,6 +6824,8 @@ function set_loaded(el, state, dblcheck) {
|
||||||
testImage(el);
|
testImage(el);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if(el.parentElement == null || el.parentElement.parentElement == null)
|
||||||
|
return;
|
||||||
var p = el.parentElement.parentElement
|
var p = el.parentElement.parentElement
|
||||||
clmod(p, 'thumbed', state)
|
clmod(p, 'thumbed', state)
|
||||||
var a = p.getAttribute('ref')
|
var a = p.getAttribute('ref')
|
||||||
|
|
@ -10996,8 +10998,8 @@ 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/plain").startsWith(window.location.origin)){
|
if(e.dataTransfer && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
||||||
currLink = e.dataTransfer.getData("text/plain");
|
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");
|
||||||
|
|
||||||
|
|
@ -11039,7 +11041,7 @@ var drag = (function() {
|
||||||
msel.selui();
|
msel.selui();
|
||||||
}
|
}
|
||||||
|
|
||||||
e.dataTransfer.setData("text/plain", r.getFilesString());
|
e.dataTransfer.setData("text", r.getFilesString());
|
||||||
}
|
}
|
||||||
catch(ex){
|
catch(ex){
|
||||||
console.log(e.target)
|
console.log(e.target)
|
||||||
|
|
@ -11083,7 +11085,7 @@ var drag = (function() {
|
||||||
msel.selui();
|
msel.selui();
|
||||||
}
|
}
|
||||||
|
|
||||||
e.dataTransfer.setData("text/plain", r.getFilesString());
|
e.dataTransfer.setData("text", r.getFilesString());
|
||||||
}
|
}
|
||||||
catch(ex){
|
catch(ex){
|
||||||
console.log(e.target)
|
console.log(e.target)
|
||||||
|
|
|
||||||
|
|
@ -1085,7 +1085,7 @@ function up2k_init(subtle) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function onovercmn(self, e, btn) {
|
function onovercmn(self, e, btn) {
|
||||||
if(e.dataTransfer.getData("text/plain") && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
if(e.dataTransfer.getData("text") && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
@ -1194,9 +1194,9 @@ function up2k_init(subtle) {
|
||||||
function gotfile(e) {
|
function gotfile(e) {
|
||||||
ev(e);
|
ev(e);
|
||||||
|
|
||||||
console.log(e.dataTransfer.getData("text/plain"))
|
console.log(e.dataTransfer.getData("text"))
|
||||||
if(e.dataTransfer && e.dataTransfer.getData("text/plain").startsWith(window.location.origin)){
|
if(e.dataTransfer && e.dataTransfer.getData("text").startsWith(window.location.origin)){
|
||||||
var currLink = e.dataTransfer.getData("text/plain");
|
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");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue