From 0eb8e0c55cabad8cd2145ecd84633f3694117c53 Mon Sep 17 00:00:00 2001 From: BNoiZe Date: Fri, 18 Oct 2013 18:53:52 +0200 Subject: [PATCH] Fixed img height on login page, set focus to username --- templates/Sparkle/assets/css/main.css | 2 ++ templates/Sparkle/assets/js/main.js | 6 ++---- templates/Sparkle/header.tpl | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/Sparkle/assets/css/main.css b/templates/Sparkle/assets/css/main.css index 4221cd62..8332a60d 100644 --- a/templates/Sparkle/assets/css/main.css +++ b/templates/Sparkle/assets/css/main.css @@ -29,6 +29,8 @@ body { header img { padding:10px 0 10px 10px; +} +img.small { height: 30px; } diff --git a/templates/Sparkle/assets/js/main.js b/templates/Sparkle/assets/js/main.js index ff662642..2f23285c 100644 --- a/templates/Sparkle/assets/js/main.js +++ b/templates/Sparkle/assets/js/main.js @@ -56,10 +56,8 @@ $(document).ready(function() { $(".main").css('min-height', $("nav").height() - 134); // set focus on username-field if on loginpage - if ($(".loginpage").length != 0) { - $("#loginname").focus(); - } - + $("#loginname").focus(); + if ($("table.bradius").length != 0) { $("table.bradius tbody tr").hover(function() { $(this).css("background-color", "#f5f5f5"); diff --git a/templates/Sparkle/header.tpl b/templates/Sparkle/header.tpl index 505a432b..6110b255 100644 --- a/templates/Sparkle/header.tpl +++ b/templates/Sparkle/header.tpl @@ -41,7 +41,7 @@

Froxlor Server Management Panel

- Froxlor Server Management Panel + Froxlor Server Management Panel