Module: check_mk
Branch: master
Commit: cbe4c7bd8bcb8c8eb7b42d082c30f56469f25a78
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cbe4c7bd8bcb8c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 17 16:29:25 2012 +0200
WATO: fix focus in user dialog
---
web/htdocs/htmllib.py | 2 +-
web/htdocs/wato.py | 1 -
2 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/htmllib.py b/web/htdocs/htmllib.py
index e180460..df141c6 100644
--- a/web/htdocs/htmllib.py
+++ b/web/htdocs/htmllib.py
@@ -786,7 +786,7 @@ class html:
obj = formname + "." + varname
self.write("<script language=\"javascript\"
type=\"text/javascript\">\n"
"<!--\n"
- "if(document.%s) {"
+ "if (document.%s) {"
" document.%s.focus();\n"
" document.%s.select();\n"
"}\n"
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 19ec6bf..9087772 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -9751,7 +9751,6 @@ def select_language(user_language):
(inactive and "display: none" or
"", default_label))
html.write('<div id="attr_entry_language"
style="%s">' % ((not inactive) and "display: none" or
""))
html.select("language", languages, user_language)
- html.set_focus("lang")
html.write("</div></td></tr>")
def page_user_profile():