mirror of
https://github.com/9001/copyparty.git
synced 2025-08-18 01:22:13 -06:00
scroll navpane to open folder on load
This commit is contained in:
parent
84bb6f915e
commit
27516e2d16
|
@ -709,6 +709,10 @@ input.eq_gain {
|
||||||
position: sticky;
|
position: sticky;
|
||||||
z-index: 1;
|
z-index: 1;
|
||||||
top: 0;
|
top: 0;
|
||||||
|
height: 2.2em;
|
||||||
|
line-height: 2.2em;
|
||||||
|
border-bottom: 1px solid #555;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
#thx_ff {
|
#thx_ff {
|
||||||
padding: 5em 0;
|
padding: 5em 0;
|
||||||
|
@ -1251,6 +1255,7 @@ html.light #files tr.sel a:hover {
|
||||||
}
|
}
|
||||||
html.light #treeh {
|
html.light #treeh {
|
||||||
background: #eee;
|
background: #eee;
|
||||||
|
border-color: #ddd;
|
||||||
}
|
}
|
||||||
html.light #tree {
|
html.light #tree {
|
||||||
scrollbar-color: #a70 #ddd;
|
scrollbar-color: #a70 #ddd;
|
||||||
|
|
|
@ -160,6 +160,7 @@ ebi('tree').innerHTML = (
|
||||||
' <a href="#" class="btn" step="2" id="twobytwo" tt="Hotkey: A">+</a>\n' +
|
' <a href="#" class="btn" step="2" id="twobytwo" tt="Hotkey: A">+</a>\n' +
|
||||||
' <a href="#" class="btn" step="-2" id="twig" tt="Hotkey: D">–</a>\n' +
|
' <a href="#" class="btn" step="-2" id="twig" tt="Hotkey: D">–</a>\n' +
|
||||||
' <a href="#" class="tgl btn" id="dyntree" tt="autogrow as tree expands">a</a>\n' +
|
' <a href="#" class="tgl btn" id="dyntree" tt="autogrow as tree expands">a</a>\n' +
|
||||||
|
' <a href="#" class="btn" id="visdir" tt="scroll to selected folder">v</a>\n' +
|
||||||
'</div>\n' +
|
'</div>\n' +
|
||||||
'<ul id="treeul"></ul>\n' +
|
'<ul id="treeul"></ul>\n' +
|
||||||
'<div id="thx_ff"> </div>'
|
'<div id="thx_ff"> </div>'
|
||||||
|
@ -2391,7 +2392,8 @@ var thegrid = (function () {
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
||||||
function tree_scrollto() {
|
function tree_scrollto(e) {
|
||||||
|
ev(e);
|
||||||
var act = QS('#treeul a.hl'),
|
var act = QS('#treeul a.hl'),
|
||||||
ul = act ? act.offsetParent : null;
|
ul = act ? act.offsetParent : null;
|
||||||
|
|
||||||
|
@ -2851,7 +2853,7 @@ var treectl = (function () {
|
||||||
var treectl = {
|
var treectl = {
|
||||||
"hidden": true,
|
"hidden": true,
|
||||||
"ls_cb": null,
|
"ls_cb": null,
|
||||||
"dir_cb": null
|
"dir_cb": tree_scrollto
|
||||||
},
|
},
|
||||||
entreed = false,
|
entreed = false,
|
||||||
fixedpos = false,
|
fixedpos = false,
|
||||||
|
@ -3239,6 +3241,7 @@ var treectl = (function () {
|
||||||
|
|
||||||
ebi('entree').onclick = treectl.entree;
|
ebi('entree').onclick = treectl.entree;
|
||||||
ebi('detree').onclick = treectl.detree;
|
ebi('detree').onclick = treectl.detree;
|
||||||
|
ebi('visdir').onclick = tree_scrollto;
|
||||||
ebi('dotfiles').onclick = tdots;
|
ebi('dotfiles').onclick = tdots;
|
||||||
ebi('dyntree').onclick = dyntree;
|
ebi('dyntree').onclick = dyntree;
|
||||||
ebi('twig').onclick = scaletree;
|
ebi('twig').onclick = scaletree;
|
||||||
|
|
Loading…
Reference in a new issue