mirror of
https://github.com/9001/copyparty.git
synced 2026-02-22 18:31:19 +10:00
fix ui-notree; closes #1123
This commit is contained in:
@@ -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,10 +6738,11 @@ var treectl = (function () {
|
|||||||
aligngriditems();
|
aligngriditems();
|
||||||
};
|
};
|
||||||
|
|
||||||
r.detree = function (e) {
|
r.detree = function (e, nw) {
|
||||||
ev(e);
|
ev(e);
|
||||||
entreed = false;
|
entreed = false;
|
||||||
swrite('entreed', 'na');
|
if (!nw)
|
||||||
|
swrite('entreed', 'na');
|
||||||
|
|
||||||
r.hide();
|
r.hide();
|
||||||
if (!nonav)
|
if (!nonav)
|
||||||
@@ -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))
|
||||||
|
|||||||
Reference in New Issue
Block a user