]> git.donarmstrong.com Git - debbugs.git/blobdiff - templates/en_US/cgi/bugreport.tmpl
Use a checkbox and CSS to show info messages instead of JavaScript
[debbugs.git] / templates / en_US / cgi / bugreport.tmpl
index c07650985f91f17db324c644aec1ceeb144f8b6b..829f989ae4a99d0ea2a2b1a607ea58f3aa7622ae 100644 (file)
@@ -33,7 +33,7 @@ function toggle_infmessages()
           qq(or <a href="mailto:$bug_num-subscribe\@$config{email_domain}">subscribe</a> ).
               qq(to this bug.</p>\n);
      }
-     $output .=  qq(<p><a href="javascript:toggle_infmessages();">Toggle useless messages</a></p>);
+     $output .=  qq(<p><input id="uselessmesages" type="checkbox"><label for="uselessmessages">Display info messages</label></p>);
      $output .= sprintf qq(<div class="msgreceived"><p>View this report as an <a href="%s">mbox folder</a>, ).
          qq(<a href="%s">status mbox</a>, <a href="%s">maintainer mbox</a></p></div>\n),
               html_escape(bug_links(bug=>$bug_num, links_only=>1,options=>{mbox=>'yes'})),