]> granicus.if.org Git - cgit/commitdiff
Don't show the the branch selector button if javascript is enabled
authorLars Hjemli <hjemli@gmail.com>
Sat, 3 Nov 2007 13:17:58 +0000 (14:17 +0100)
committerLars Hjemli <hjemli@gmail.com>
Sat, 3 Nov 2007 13:17:58 +0000 (14:17 +0100)
Suggested-by: Olivier Ramonat <olivier@ramonat.fr>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
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");