mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +00:00
Show attachments by default in full list mode
SVN revision: 1678
This commit is contained in:
parent
677a945696
commit
472790e412
@ -15661,6 +15661,8 @@ void show_page_filters(LOGBOOK * lbs, int n_msg, int page_n, BOOL mode_commands,
|
|||||||
ref[0] = 0;
|
ref[0] = 0;
|
||||||
|
|
||||||
cur_exp = 0;
|
cur_exp = 0;
|
||||||
|
if (strieq(mode, "full"))
|
||||||
|
cur_exp = 1;
|
||||||
if (isparam("elattach"))
|
if (isparam("elattach"))
|
||||||
cur_exp = atoi(getparam("elattach"));
|
cur_exp = atoi(getparam("elattach"));
|
||||||
if (isparam("attach"))
|
if (isparam("attach"))
|
||||||
@ -16548,6 +16550,10 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
|||||||
show_attachments = FALSE; /* hide attachments */
|
show_attachments = FALSE; /* hide attachments */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* show attachments in full mode by default */
|
||||||
|
if (strieq(mode, "Full"))
|
||||||
|
show_attachments = TRUE;
|
||||||
|
|
||||||
/* supersede attachment mode if in cookie */
|
/* supersede attachment mode if in cookie */
|
||||||
if (isparam("elattach"))
|
if (isparam("elattach"))
|
||||||
show_attachments = atoi(getparam("elattach"));
|
show_attachments = atoi(getparam("elattach"));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user