mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Implemented “List drafts” flag
This commit is contained in:
parent
bf25ce7e61
commit
6ec506ba7c
@ -2798,6 +2798,16 @@ Options Location = Main Building{a}, New Building{b}, Old Building{c}
|
||||
<b><code>10</code></b> seconds after the last edit. Setting Autosave to
|
||||
zero disables the autosave functionality.
|
||||
</li>
|
||||
<li>
|
||||
<b><code>List drafts = 0|1</code></b><br>
|
||||
By default, draft entries are shown in the list display in another browser
|
||||
when the entries are currently edited. This can be confusing to other users
|
||||
since the draft entries are frequently updated. To avoid this, this flag can
|
||||
be se to <b><code>0</code></b>, which hides all draft entries in the list view.
|
||||
If they are hidden, the only way to come back to them is to hit the
|
||||
<b><code>New</code></b> menu item, in which case the system presents to the user
|
||||
a list of open draft messages to be continued.
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a name="themes" id="themes"></a>
|
||||
|
||||
@ -21557,8 +21557,9 @@ void show_elog_list(LOGBOOK * lbs, int past_n, int last_n, int page_n, BOOL defa
|
||||
break;
|
||||
|
||||
/* skip drafts */
|
||||
if (draft[0])
|
||||
continue;
|
||||
if (getcfg(lbs->name, "List drafts", str, sizeof(str)) && atoi(str) == 0)
|
||||
if (draft[0])
|
||||
continue;
|
||||
|
||||
if (csv) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user