From: wbudic Date: Sat, 15 Dec 2018 22:34:35 +0000 (+1100) Subject: Minor fixes X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=363c0382d961ce633d6134794bcb6c1354f58967;p=LifeLog.git Minor fixes --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index b63844d..16cb346 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -247,12 +247,17 @@ my $srh = qq( ); +my $ctmsg = '

  (Use the Category dropdown to change).'; if($rs_keys || $rs_cat_idx){ - $srh = $srh.' - ' + $srh = $srh.' + '; + $ctmsg = ""; } - $srh = $srh.'View by Category: -   (Use the Category dropdown to change). + + + +$srh = $srh.'View by Category: + '.$ctmsg.'

'; diff --git a/htdocs/cgi-bin/wsrc/main.js b/htdocs/cgi-bin/wsrc/main.js index a9dcf93..434bd8c 100644 --- a/htdocs/cgi-bin/wsrc/main.js +++ b/htdocs/cgi-bin/wsrc/main.js @@ -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){