]> lifelog.hopto.org Git - LifeLog.git/commitdiff
Minor fixes
authorwbudic <redacted>
Sat, 15 Dec 2018 22:34:35 +0000 (09:34 +1100)
committerwbudic <redacted>
Sat, 15 Dec 2018 22:34:35 +0000 (09:34 +1100)
htdocs/cgi-bin/main.cgi
htdocs/cgi-bin/wsrc/main.js

index b63844dfb2bfde67862a50f34879209af3d2dd29..16cb3462ebb4af39475cf1f4337c727ed175ba89 100755 (executable)
@@ -247,12 +247,17 @@ my  $srh = qq(
        <input name="keywords" type="text" size="60" value=").$rs_keys.qq("/></td>
        <td><input type="submit" value="Search"/></td></tr>);
 
+my $ctmsg = '<p id="ctmsg">&nbsp;&nbsp;(Use the Category dropdown to change).</div>';
 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 colspan="2">
+       <button onClick="resetView()">Reset Whole View</button></td><td colspan="3"></td></tr>';
+       $ctmsg = "";
 }
-    $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>
+
+
+
+$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="">'.$ctmsg.'</td></tr>
     <tr><td colspan="4"><br/></td></tr>
 </table>
                 </form><br/>';
index a9dcf93939713285d52d4129f47d65cedad7ad3c..434bd8c2cfbaef0d16cf473fb47446279ae1d214 100644 (file)
@@ -131,7 +131,8 @@ function updateSelCategory(sel){
 
     cat.value = sel.options[sel.selectedIndex].value;
     b.innerText = sel.options[sel.selectedIndex].text;
-    
+       
+    document.getElementById("ctmsg").style.display = "none";    
 }
 
 function viewByCategory(btn){