]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Reset View By Category implemented, only, not tested.
authorWill Budic <redacted>
Sun, 10 May 2020 05:37:23 +0000 (15:37 +1000)
committerWill Budic <redacted>
Sun, 10 May 2020 05:37:23 +0000 (15:37 +1000)
htdocs/cgi-bin/main.cgi
htdocs/cgi-bin/wsrc/main.js

index 36be7594e18f9e53393746b7155414c1d8987681..1fef35b4208276ffeed9914d1626778ef9d8aefb 100755 (executable)
@@ -876,6 +876,7 @@ _TXT
             </div>
 
             <input id="vc" name="vc" type="hidden" value="$prm_vc"/>
+            <button id="btnxrc" type="button" onClick="return resetViewByCategory()">Reset</button>&nbsp;&nbsp;&nbsp;
             <button id="btn_cat" onclick="viewByCategory(this);">View</button>
 &nbsp;&nbsp;
             <b>View by Amount Type:</b>
index 85018d0e5a44b6a240154418453a91ba98a17782..1a043da0467cbc09d115306dbee76e617075c64e 100644 (file)
@@ -796,6 +796,11 @@ function removeExclude() {
 return false;
 }
 
+function resetViewByCategory(){
+  $("#vc").val(0);
+  $("#lcat_v").html("&nbsp;&nbsp;&nbsp;<font size=1>-- Select --</font></i>&nbsp;&nbsp;&nbsp;");
+}
+
 function resetExclude(){
     $("#xc").val(0);
     $('#divxc').text("");