mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 07:44:08 -07:00
fix dks in grid; closes #1157
This commit is contained in:
parent
39c3ccc2eb
commit
d1ddcb19f5
|
|
@ -5418,7 +5418,8 @@ var thegrid = (function () {
|
||||||
|
|
||||||
function gclick(e, dbl) {
|
function gclick(e, dbl) {
|
||||||
var oth = ebi(this.getAttribute('ref')),
|
var oth = ebi(this.getAttribute('ref')),
|
||||||
href = noq_href(this),
|
qhref = this.getAttribute('href'),
|
||||||
|
href = qhref.split('?')[0],
|
||||||
fid = oth.getAttribute('id'),
|
fid = oth.getAttribute('id'),
|
||||||
aplay = ebi('a' + fid),
|
aplay = ebi('a' + fid),
|
||||||
atext = ebi('t' + fid),
|
atext = ebi('t' + fid),
|
||||||
|
|
@ -5447,13 +5448,13 @@ var thegrid = (function () {
|
||||||
aplay.click();
|
aplay.click();
|
||||||
|
|
||||||
else if (is_dir && !have_sel)
|
else if (is_dir && !have_sel)
|
||||||
treectl.reqls(href, true);
|
treectl.reqls(qhref, true);
|
||||||
|
|
||||||
else if (is_txt && !has(['md', 'htm', 'html'], is_txt))
|
else if (is_txt && !has(['md', 'htm', 'html'], is_txt))
|
||||||
atext.click();
|
atext.click();
|
||||||
|
|
||||||
else if (!is_img && have_sel)
|
else if (!is_img && have_sel)
|
||||||
window.open(href, '_blank');
|
window.open(qhref, '_blank');
|
||||||
|
|
||||||
else {
|
else {
|
||||||
if (!dbl)
|
if (!dbl)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue