From f053c014ac50f97266310d8460542b718e0d823a Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 23 Jul 2004 09:42:39 +0000 Subject: [PATCH] Use onUnload only if locking enabled SVN revision: 975 --- src/elogd.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index b3be73fc..92d04cf8 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -6,6 +6,9 @@ Contents: Web server program for Electronic Logbook ELOG $Log$ + Revision 1.399 2004/07/23 09:42:39 midas + Use onUnload only if locking enabled + Revision 1.398 2004/07/23 07:42:57 midas Fixed bug in extract_host() @@ -7093,7 +7096,11 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL rsprintf("\n"); - rsprintf("\n"); + if (getcfg(lbs->name, "Use Lock", str, sizeof(str)) && atoi(str) == 1) + rsprintf("\n"); + else + rsprintf("\n"); + rsprintf("
\n");