chiark / gitweb /
check-bkp-status.in: Further fettling of log hiding and showing.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 13 Jul 2013 15:34:40 +0000 (16:34 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 5 Apr 2014 13:04:52 +0000 (14:04 +0100)
If a log display is already shown, and then selected from the master
table, then don't mark it for auto-hiding.

check-bkp-status.in

index a999f13f7b8d1951f9995aaa438498b96b7e8ec6..de347c60a1318a18609f3a8d8c03fbcd61babe19 100644 (file)
@@ -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(