From 5465684e204078a105ce7708aa23f021d615c8c2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cyril=20Bont=C3=A9?= Date: Thu, 18 Apr 2013 22:38:35 +0200 Subject: [PATCH] MINOR: stats: remove the autofocus on the scope input field commit 88c278fadf provided a new input field on the statistics page which was focused by default. The autofocus prevent to scroll down the page with the keyboard immediately afterloading it, without the need to leave that field. It also interfered with "stats refresh" by scrolling up to this field on each refresh. This small patch removes the autofocus keyword and adds a tabindex="1" as suggested by Vincent Bernat. It also cleans up the generated html code. --- src/dumpstats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index 2069048e78..806d9c6d80 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -3174,7 +3174,7 @@ static void stats_dump_html_info(struct stream_interface *si, struct uri_auth *u scope_txt[si->applet.ctx.stats.scope_len] = '\0'; chunk_appendf(&trash, - "
  • Scope :
    \n", + "
  • Scope :
    \n", uri->uri_prefix, (si->applet.ctx.stats.flags & STAT_HIDE_DOWN) ? ";up" : "", (si->applet.ctx.stats.flags & STAT_NO_REFRESH) ? ";norefresh" : "", -- 2.47.3