mirror of
https://github.com/9001/copyparty.git
synced 2026-01-12 15:52:39 -07:00
fix ui-notree; closes #1123
This commit is contained in:
parent
e0845b2363
commit
4c73704ce7
|
|
@ -1847,7 +1847,7 @@ def add_ui(ap, retry: int):
|
||||||
ap2.add_argument("--ui-noacci", action="store_true", help="hide account-info in the UI (volflag=ui_noacci)")
|
ap2.add_argument("--ui-noacci", action="store_true", help="hide account-info in the UI (volflag=ui_noacci)")
|
||||||
ap2.add_argument("--ui-nosrvi", action="store_true", help="hide server-info in the UI (volflag=ui_nosrvi)")
|
ap2.add_argument("--ui-nosrvi", action="store_true", help="hide server-info in the UI (volflag=ui_nosrvi)")
|
||||||
ap2.add_argument("--ui-nonav", action="store_true", help="hide navpane+breadcrumbs (volflag=ui_nonav)")
|
ap2.add_argument("--ui-nonav", action="store_true", help="hide navpane+breadcrumbs (volflag=ui_nonav)")
|
||||||
ap2.add_argument("--ui-notree", action="store_true", help="hide navpane in the UI (volflag=ui_nonav)")
|
ap2.add_argument("--ui-notree", action="store_true", help="hide navpane in the UI (volflag=ui_notree)")
|
||||||
ap2.add_argument("--ui-nocpla", action="store_true", help="hide cpanel-link in the UI (volflag=ui_nocpla)")
|
ap2.add_argument("--ui-nocpla", action="store_true", help="hide cpanel-link in the UI (volflag=ui_nocpla)")
|
||||||
ap2.add_argument("--ui-nolbar", action="store_true", help="hide link-bar in the UI (volflag=ui_nolbar)")
|
ap2.add_argument("--ui-nolbar", action="store_true", help="hide link-bar in the UI (volflag=ui_nolbar)")
|
||||||
ap2.add_argument("--ui-noctxb", action="store_true", help="hide context-buttons in the UI (volflag=ui_noctxb)")
|
ap2.add_argument("--ui-noctxb", action="store_true", help="hide context-buttons in the UI (volflag=ui_noctxb)")
|
||||||
|
|
|
||||||
|
|
@ -6738,9 +6738,10 @@ var treectl = (function () {
|
||||||
aligngriditems();
|
aligngriditems();
|
||||||
};
|
};
|
||||||
|
|
||||||
r.detree = function (e) {
|
r.detree = function (e, nw) {
|
||||||
ev(e);
|
ev(e);
|
||||||
entreed = false;
|
entreed = false;
|
||||||
|
if (!nw)
|
||||||
swrite('entreed', 'na');
|
swrite('entreed', 'na');
|
||||||
|
|
||||||
r.hide();
|
r.hide();
|
||||||
|
|
@ -7640,7 +7641,7 @@ var treectl = (function () {
|
||||||
|
|
||||||
if (notree) {
|
if (notree) {
|
||||||
cs = 'na';
|
cs = 'na';
|
||||||
r.hide();
|
r.detree(null, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (cs == 'tree' || (cs != 'na' && vw >= 60))
|
if (cs == 'tree' || (cs != 'na' && vw >= 60))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue