]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Upd Search and View Interaction, display.
authorWill Budicm <redacted>
Thu, 27 Aug 2020 00:53:39 +0000 (10:53 +1000)
committerWill Budicm <redacted>
Thu, 27 Aug 2020 00:53:39 +0000 (10:53 +1000)
htdocs/cgi-bin/main.cgi
htdocs/cgi-bin/wsrc/main.js

index 5c4e3e6329dced965ba45c0ba75a7467fb92b9e5..7cd05a8c2152c1da02a08bd153bd2c6cd02e8665 100755 (executable)
@@ -28,7 +28,7 @@ use Gzip::Faster;
 #DEFAULT SETTINGS HERE!
 use lib "system/modules";
 require Settings;
-$CGI::POST_MAX = 1024 * 1024 * 5;  # max 5B posts
+$CGI::POST_MAX = 1024 * 1024 * 5;  # max 5GB file post size limit.
 
 my $cgi = CGI->new;
 my $sss = new CGI::Session( "driver:File", $cgi, { Directory => &Settings::logPath } );
@@ -826,6 +826,7 @@ $log_output .= qq(<form id="frm_srch" action="main.cgi"><TABLE class="tbl" borde
        <input type="hidden" name="rs_prev" value="$log_rc_prev"/>
        <input type="hidden" name="rs_page" value="$rs_page"/>
        <input type="hidden" name="CGISESSID" value="$sid"/>
+    <input type="hidden" id="isInViewMode" value="$isInViewMode"/>
        $tags
     </form>
        );
@@ -834,7 +835,7 @@ $log_output .= qq(<form id="frm_srch" action="main.cgi"><TABLE class="tbl" borde
        <form id="frm_srch" action="main.cgi">
        <table class="tbl" border="0" width=").&Settings::pagePrcWidth.qq(%">
          <tr class="r0">
-        <td colspan="2"><b>Search/View By</b>
+        <td colspan="2"><b>View By/Search</b>
             <a id="srch_close" href="#" onclick="return hide('#div_srh');">$sp1</a>
             <a id="srch_close" href="#" onclick="return toggle('#div_srh .collpsd');">$sp2</a>
         </td>
index ee96214dd80a92b80dd65ab4485a19a0bc67d42c..9d609a37d78ed072fcb53b2298a0e9555d14e2ae 100644 (file)
@@ -302,6 +302,11 @@ function onBodyLoad(toggle, tz, today, expires, rs_cur) {
         }
     });
 
+    if($("#isInViewMode").val()>0){
+        this.toggle('#div_srh', true); 
+        this.toggle('#div_log', true);
+    }
+
     display("Log page is ready!");
 }