From 9e2a1468d781f77b18a88b343a8927320cdfb0cf Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Tue, 2 Aug 2005 18:39:12 +0000 Subject: [PATCH] Remove obsolete options SVN revision: 1466 --- doc/config.html | 25 ++++++++++++++++++++++++- src/elogd.c | 22 +++++++++------------- 2 files changed, 33 insertions(+), 14 deletions(-) diff --git a/doc/config.html b/doc/config.html index 9afc1cb0..14088b97 100755 --- a/doc/config.html +++ b/doc/config.html @@ -1222,7 +1222,7 @@ Same as before, but gets added after the previous entry.

  • Prepend on edit = <string> -
  • Apend on edit = <string> +
  • Append on edit = <string>
    Same as before, but for editing entries.

    @@ -1707,6 +1707,12 @@ have been updated recently. If this value is set to 2, the resubmit box is not displayed at all. The default is 0.

    +

  • Resubmit replies = 0|1
    If this flag is set to +1 and an entry is resubmited as a new entry and this entry has replies, +all replies of this entry are resubmittes as new entries as well. The default is +0. +

    +

  • Display Email recipients = 0|1
    If this flag is 1, the email recipients are displayed when a logbook @@ -1850,6 +1856,23 @@ This switch has two meanings. First, it defines the default state of the if the quick filters are case sensitive or not. The default is 0.

    +

  • Mode commands = 0|1 +
    +If this flag is missing or set to 1, the links "Full", "Summary" and +"Threaded" are shown on the top of the listing page. If this flag is set to +0, these commands are hidden. This might be useful in logbooks where only +one mode makes sense for example. +

    + +

  • Suppress execute default = 0|1 +
    +External scripts can be called with the Execute new/edit/delete +options. If these options are enabled, a checkbox appears which lets the user +suppress execution of the external script. The setting of this flag determines +the default state of this checkbox. In logbooks where a script should only be +ocasionally executed, it could make sense to set this flag to 1. +

    +


    diff --git a/src/elogd.c b/src/elogd.c index f52b7773..aa991a62 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.734 2005/08/02 18:39:12 ritt + Remove obsolete options + Revision 1.733 2005/07/29 14:35:11 ritt Added icons for 'show new/all' @@ -10651,10 +10654,8 @@ void show_find_form(LOGBOOK * lbs) rsprintf("%s:
    ", loc("Options")); - if (!getcfg(lbs->name, "Number attachments", str, sizeof(str)) || atoi(str) > 0) { - rsprintf(""); - rsprintf("\n", loc("Show attachments")); - } + rsprintf(""); + rsprintf("\n", loc("Show attachments")); rsprintf(""); rsprintf("\n", loc("Printable output")); @@ -15134,16 +15135,11 @@ void display_line(LOGBOOK * lbs, int message_id, int number, char *mode, if (attr_icon[0]) rsprintf("\n\"%s\"\n ", attr_icon, attr_icon, attr_icon); else { - /* if top level only, display reply icon if message has a reply */ - if (getcfg(lbs->name, "Top level only", str, sizeof(str)) && atoi(str) == 1 && reply_to[0]) + /* display standard icons */ + if (level == 0) + rsprintf("\n\"%s\"\n ", loc("Entry"), loc("Entry")); + else rsprintf("\n\"%s\"\n ", loc("Reply"), loc("Reply")); - else { - /* display standard icons */ - if (level == 0) - rsprintf("\n\"%s\"\n ", loc("Entry"), loc("Entry")); - else - rsprintf("\n\"%s\"\n ", loc("Reply"), loc("Reply")); - } } if (highlight != message_id) rsprintf("
    \n");