diff --git a/html/cgi-bin/ids.cgi b/html/cgi-bin/ids.cgi index ccde15a22..c31280fbd 100644 --- a/html/cgi-bin/ids.cgi +++ b/html/cgi-bin/ids.cgi @@ -204,7 +204,18 @@ $selected{'RULES'}{$snortsettings{'RULES'}} = "selected='selected'"; &Header::openpage($Lang::tr{'intrusion detection system'}, 1, ''); -print ""; +### Java Script ### +print < + // Tiny java script function to show/hide the rules + // of a given category. + function showhide(tblname) { + \$("#" + tblname).toggle(); + } + +END +; + print < - END ; &Header::closebox();