[icinga-checkins] icinga.org: icinga-core/mfriedrich/cgis: classic-ui: Added setting focus to main frame on first site load #3202

git at icinga.org git at icinga.org
Mon Mar 4 18:40:45 CET 2013


Module: icinga-core
Branch: mfriedrich/cgis
Commit: dfdce29a6b104ae6f16ea15a31436d9988caa551
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=dfdce29a6b104ae6f16ea15a31436d9988caa551

Author: Ricardo Bartels <ricardo at bitchbrothers.com>
Date:   Thu Feb 21 00:23:18 2013 +0100

classic-ui: Added setting focus to main frame on first site load #3202

refs: #3202

now focus is on main frame after initial load

whatthecommit: should work I guess...

---

 Changelog          |    1 +
 html/index.html.in |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/Changelog b/Changelog
index b51a50e..06dd7d5 100644
--- a/Changelog
+++ b/Changelog
@@ -25,6 +25,7 @@ ENHANCEMENTS
 * classic ui: Changed field size for hours to 4 when setting flexible downtime #3484 - RB
 * classic ui: Added process status to JSON response #3172 - RB
 * classic ui: Added data/time selection to 'log file navigation' #3168 - RB
+* classic ui: Added setting focus to main frame on first site load #3202 - RB
 
 * idoutils: use transactions for large object dumps, opt-in config option #3527 - GB
 * idoutils: add experimental socket queue proxy; opt-in via config option #3533 - GB
diff --git a/html/index.html.in b/html/index.html.in
index f4dbe0c..1894b7d 100644
--- a/html/index.html.in
+++ b/html/index.html.in
@@ -6,7 +6,7 @@
 	<meta name="robots" content="noindex, nofollow" />
 	<link rel="shortcut icon" type="image/x-icon" href="images/favicon.ico" />
 </head>
-	<frameset frameborder="0" framespacing="0" rows="72,*" onLoad='document.title="Icinga: "+window.location.hostname;'>
+	<frameset frameborder="0" framespacing="0" rows="72,*" onLoad='document.title="Icinga: "+window.location.hostname; document.getElementById("main").focus();'>
 		<frame src="@cgiurl@/tac.cgi?tac_header" name="top" target="main" scrolling="no" />
 		<frameset frameborder="0" framespacing="0" cols="200,*">
 			<frame src="menu.html" name="menu" target="main" scrolling="auto"/>





More information about the icinga-checkins mailing list