From: Mark Wooding Date: Sat, 13 Jul 2013 15:34:40 +0000 (+0100) Subject: check-bkp-status.in: Further fettling of log hiding and showing. X-Git-Tag: 1.0.2.2~2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/rsync-backup/commitdiff_plain/b0c99c5901c50c42ad37b040bcde0a299e9e2000 check-bkp-status.in: Further fettling of log hiding and showing. If a log display is already shown, and then selected from the master table, then don't mark it for auto-hiding. --- diff --git a/check-bkp-status.in b/check-bkp-status.in index a999f13..de347c6 100644 --- a/check-bkp-status.in +++ b/check-bkp-status.in @@ -275,8 +275,10 @@ html_header () { if (LAST_EXPAND !== null) do_hide(LAST_EXPAND[0], LAST_EXPAND[1]); var d = elt('logdump-' + tag); var b = elt('expand-' + tag); - LAST_EXPAND = [d, b]; - do_show(d, b); + if (elt_class_p(d, 'hide')) { + LAST_EXPAND = [d, b]; + do_show(d, b); + } } function make_toggle_button(tag) { document.write(