mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
remove option to disable spa
This commit is contained in:
parent
a2c0c708e8
commit
708f20b7af
|
@ -149,7 +149,6 @@ ebi('op_cfg').innerHTML = (
|
||||||
' <a id="thumbs" class="tgl btn" href="#" tt="in icon view, toggle icons or thumbnails$NHotkey: T">🖼️ thumbs</a>\n' +
|
' <a id="thumbs" class="tgl btn" href="#" tt="in icon view, toggle icons or thumbnails$NHotkey: T">🖼️ thumbs</a>\n' +
|
||||||
' <a id="dotfiles" class="tgl btn" href="#" tt="show hidden files (if server permits)">dotfiles</a>\n' +
|
' <a id="dotfiles" class="tgl btn" href="#" tt="show hidden files (if server permits)">dotfiles</a>\n' +
|
||||||
' <a id="ireadme" class="tgl btn" href="#" tt="show README.md in folder listings">📜 readme</a>\n' +
|
' <a id="ireadme" class="tgl btn" href="#" tt="show README.md in folder listings">📜 readme</a>\n' +
|
||||||
' <a id="spafiles" class="tgl btn" href="#" tt="speedboost when not using the navpane;$Nturn it off if things arent loading somehow">spa</a>\n' +
|
|
||||||
' </div>\n' +
|
' </div>\n' +
|
||||||
'</div>\n' +
|
'</div>\n' +
|
||||||
'<div>\n' +
|
'<div>\n' +
|
||||||
|
@ -2855,7 +2854,7 @@ var thegrid = (function () {
|
||||||
else if (in_tree && !have_sel)
|
else if (in_tree && !have_sel)
|
||||||
in_tree.click();
|
in_tree.click();
|
||||||
|
|
||||||
else if (is_dir && !have_sel && treectl.spa)
|
else if (is_dir && !have_sel)
|
||||||
treectl.reqls(href, true, true);
|
treectl.reqls(href, true, true);
|
||||||
|
|
||||||
else if (!is_img && have_sel)
|
else if (!is_img && have_sel)
|
||||||
|
@ -3625,7 +3624,6 @@ var treectl = (function () {
|
||||||
mentered = null,
|
mentered = null,
|
||||||
treesz = clamp(icfg_get('treesz', 16), 10, 50);
|
treesz = clamp(icfg_get('treesz', 16), 10, 50);
|
||||||
|
|
||||||
bcfg_bind(r, 'spa', 'spafiles', true);
|
|
||||||
bcfg_bind(r, 'ireadme', 'ireadme', true);
|
bcfg_bind(r, 'ireadme', 'ireadme', true);
|
||||||
bcfg_bind(r, 'dyn', 'dyntree', true, onresize);
|
bcfg_bind(r, 'dyn', 'dyntree', true, onresize);
|
||||||
bcfg_bind(r, 'dots', 'dotfiles', false, function (v) {
|
bcfg_bind(r, 'dots', 'dotfiles', false, function (v) {
|
||||||
|
@ -5256,7 +5254,7 @@ function wintitle(txt) {
|
||||||
|
|
||||||
ebi('path').onclick = function (e) {
|
ebi('path').onclick = function (e) {
|
||||||
var a = e.target.closest('a[href]');
|
var a = e.target.closest('a[href]');
|
||||||
if (!treectl.spa || !a || !(a = a.getAttribute('href') + '') || !a.endsWith('/'))
|
if (!a || !(a = a.getAttribute('href') + '') || !a.endsWith('/'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
thegrid.setvis(true);
|
thegrid.setvis(true);
|
||||||
|
@ -5276,11 +5274,8 @@ ebi('files').onclick = ebi('docul').onclick = function (e) {
|
||||||
el.click();
|
el.click();
|
||||||
return ev(e);
|
return ev(e);
|
||||||
}
|
}
|
||||||
if (treectl.spa) {
|
treectl.reqls(tgt.getAttribute('href'), true, true);
|
||||||
treectl.reqls(tgt.getAttribute('href'), true, true);
|
return ev(e);
|
||||||
return ev(e);
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
tgt = e.target.closest('a[hl]');
|
tgt = e.target.closest('a[hl]');
|
||||||
|
|
Loading…
Reference in a new issue