]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-shared.c
Don't show the the branch selector button if javascript is enabled
[ps-cgit] / ui-shared.c
index bd34cc36462cb50d81377fcac66781ddd6540458..72a7b44472ddb483b9bc6640d029380ac11afd8b 100644 (file)
@@ -492,7 +492,7 @@ void cgit_print_pageheader(char *title, int show_search)
                for_each_branch_ref(print_branch_option, cgit_query_head);
                html("</select>\n");
                html("</td><td>");
-               html("<input type='submit' id='switch-btn' value='..'>\n");
+               html("<noscript><input type='submit' id='switch-btn' value='..'></noscript>\n");
                html("</td></tr></table>");
                html("</form>\n");