diff --git a/doc/config.html b/doc/config.html index f917aade..8f5d8e43 100755 --- a/doc/config.html +++ b/doc/config.html @@ -2798,6 +2798,16 @@ Options Location = Main Building{a}, New Building{b}, Old Building{c} 10 seconds after the last edit. Setting Autosave to zero disables the autosave functionality. +
  • + List drafts = 0|1
    + 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 0, 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 + New menu item, in which case the system presents to the user + a list of open draft messages to be continued. +
  • diff --git a/src/elogd.c b/src/elogd.c index c7296fbf..9033a403 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -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) {