Skip to content

Commit

Permalink
Don't show the the branch selector button if javascript is enabled
Browse files Browse the repository at this point in the history
Suggested-by: Olivier Ramonat <olivier@ramonat.fr>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
  • Loading branch information
hjemli committed Nov 3, 2007
1 parent 601c76e commit 72ede12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui-shared.c
Expand Up @@ -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");

Expand Down

0 comments on commit 72ede12

Please sign in to comment.