Release 1.1.1.
[rsync-backup] / check-bkp-status.in
index a999f13..75ddf60 100644 (file)
@@ -153,6 +153,7 @@ html_header () {
 <html>
 <head>
   <title>$now rsync-backup report</title>
+  <meta name=viewport content="width=device-width initial-scale=1.0">
   <style type='text/css'><!--
        body {
          background: white;
@@ -275,8 +276,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(
@@ -404,7 +407,7 @@ backup () {
       case $host:$fs in $p) matchp=t; break ;; esac
     done
     case $matchp in nil) return ;; esac
-    when=$(sqlite3 $INDEXDB \
+    when=$(sqlite3 -batch -list -separator \| -noheader $INDEXDB \
       "SELECT MAX(date) FROM idx WHERE host = '$host' AND fs = '$fs';")
     case $when in
       "")