From 363c0382d961ce633d6134794bcb6c1354f58967 Mon Sep 17 00:00:00 2001 From: wbudic Date: Sun, 16 Dec 2018 09:34:35 +1100 Subject: [PATCH] Minor fixes --- htdocs/cgi-bin/main.cgi | 13 +++++++++---- htdocs/cgi-bin/wsrc/main.js | 3 ++- 2 files changed, 11 insertions(+), 5 deletions(-) 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){ -- 2.34.1