mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-14 20:33:48 +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
|
<b><code>10</code></b> seconds after the last edit. Setting Autosave to
|
||||||
zero disables the autosave functionality.
|
zero disables the autosave functionality.
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
<p>
|
<p>
|
||||||
<a name="themes" id="themes"></a>
|
<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;
|
break;
|
||||||
|
|
||||||
/* skip drafts */
|
/* skip drafts */
|
||||||
if (draft[0])
|
if (getcfg(lbs->name, "List drafts", str, sizeof(str)) && atoi(str) == 0)
|
||||||
continue;
|
if (draft[0])
|
||||||
|
continue;
|
||||||
|
|
||||||
if (csv) {
|
if (csv) {
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user