]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Minor fix, Reset View not appering on category view.
authorwbudic <redacted>
Fri, 14 Dec 2018 03:46:13 +0000 (14:46 +1100)
committerwbudic <redacted>
Fri, 14 Dec 2018 03:46:13 +0000 (14:46 +1100)
htdocs/cgi-bin/main.cgi

index bae0c078953abaa9e73e9cc1ac1ef9c1654b4fad..b63844dfb2bfde67862a50f34879209af3d2dd29 100755 (executable)
@@ -247,11 +247,12 @@ my  $srh = qq(
        <input name="keywords" type="text" size="60" value=").$rs_keys.qq("/></td>
        <td><input type="submit" value="Search"/></td></tr>);
 
-if($rs_keys){
+if($rs_keys || $rs_cat_idx){
        $srh = $srh.'<tr><td colspan="2"><button onClick="resetView()">Reset Whole View</button></td>
        <td colspan="2"></td></tr>'
 }
-    $srh = $srh.'<tr><td>View by Category:</td><td><button id="btn_cat" onclick="viewByCategory(this);">Unspecified</button><input id="idx_cat" name="category" type="hidden" value=""></td></tr>
+    $srh = $srh.'<tr><td>View by Category:</td><td><button id="btn_cat" onclick="viewByCategory(this);">Unspecified</button><input id="idx_cat" name="category" type="hidden" value="">
+    &nbsp;&nbsp;(Use the Category dropdown to change).</td></tr>
     <tr><td colspan="4"><br/></td></tr>
 </table>
                 </form><br/>';