mirror of
https://github.com/9001/copyparty.git
synced 2025-08-20 18:32:20 -06:00
fix gridview selection/baguettebox order
This commit is contained in:
parent
c6b3f035e5
commit
c6a103609e
|
@ -1532,7 +1532,9 @@ var thegrid = (function () {
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
var oth = ebi(this.getAttribute('ref')),
|
var oth = ebi(this.getAttribute('ref')),
|
||||||
|
href = this.getAttribute('href'),
|
||||||
aplay = ebi('a' + oth.getAttribute('id')),
|
aplay = ebi('a' + oth.getAttribute('id')),
|
||||||
|
is_img = /\.(gif|jpe?g|png|webp)(\?|$)/i.test(href),
|
||||||
td = oth.closest('td').nextSibling,
|
td = oth.closest('td').nextSibling,
|
||||||
tr = td.parentNode;
|
tr = td.parentNode;
|
||||||
|
|
||||||
|
@ -1543,11 +1545,11 @@ var thegrid = (function () {
|
||||||
else if (widget.is_open && aplay)
|
else if (widget.is_open && aplay)
|
||||||
aplay.click();
|
aplay.click();
|
||||||
|
|
||||||
else if (QS('#files tr.sel'))
|
else if (!is_img && QS('#files tr.sel'))
|
||||||
window.open(this.getAttribute('href'), '_blank');
|
window.open(href, '_blank');
|
||||||
|
|
||||||
else return true;
|
else return true;
|
||||||
return ev(e);
|
ev(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
r.loadsel = function () {
|
r.loadsel = function () {
|
||||||
|
|
|
@ -67,6 +67,9 @@ function ev(e) {
|
||||||
if (e.stopPropagation)
|
if (e.stopPropagation)
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
||||||
|
if (e.stopImmediatePropagation)
|
||||||
|
e.stopImmediatePropagation();
|
||||||
|
|
||||||
e.returnValue = false;
|
e.returnValue = false;
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
@ -360,11 +363,11 @@ function get_vpath() {
|
||||||
|
|
||||||
|
|
||||||
function get_pwd() {
|
function get_pwd() {
|
||||||
var pwd = ('; ' + document.cookie).split('; cppwd=');
|
var pwd = ('; ' + document.cookie).split('; cppwd=');
|
||||||
if (pwd.length < 2)
|
if (pwd.length < 2)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
return pwd[1].split(';')[0];
|
return pwd[1].split(';')[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue