1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Introduced the document.browse.show_refresh_link option.

Whether to show Refresh: link line. Default 1.
This commit is contained in:
Witold Filipczyk 2015-01-02 14:53:18 +01:00
parent 06f0dff43f
commit 46767f6bf0
2 changed files with 8 additions and 2 deletions

View File

@ -475,6 +475,10 @@ static union option_info config_options_info[] = {
"is used unchanged. It can fix going back in history for some "
"sites that use refreshing with zero values.")),
INIT_OPT_BOOL("document.browse", N_("Show meta refresh link"),
"show_refresh_link", 0, 1,
N_("Whether to show meta refresh link.")),
INIT_OPT_BOOL("document.browse", N_("Tables navigation order"),
"table_move_order", 0, 0,
N_("Move by columns in table, instead of rows.")),

View File

@ -307,8 +307,10 @@ check_head_for_refresh(struct html_context *html_context, unsigned char *head)
html_focusable(html_context, NULL);
put_link_line("Refresh: ", url, joined_url,
html_context->options->framename, html_context);
if (get_opt_bool("document.browse.show_refresh_link", NULL)) {
put_link_line("Refresh: ", url, joined_url,
html_context->options->framename, html_context);
}
html_context->special_f(html_context, SP_REFRESH, seconds, joined_url);
}