diff --git a/src/ozones/Server/public/css/login.css b/src/ozones/Server/public/css/login.css index b6bda684cc..e119e9189a 100644 --- a/src/ozones/Server/public/css/login.css +++ b/src/ozones/Server/public/css/login.css @@ -135,7 +135,7 @@ div#login input#login_btn:hover { .error_message { display: none; position: relative; - top: 150px; + top: 80px; font-family: Arial, Helvetica, sans-serif; color:red; font-size:1.6em; diff --git a/src/ozones/Server/public/js/login.js b/src/ozones/Server/public/js/login.js index fa6e3260c7..ff5eb25faa 100644 --- a/src/ozones/Server/public/js/login.js +++ b/src/ozones/Server/public/js/login.js @@ -25,11 +25,11 @@ function auth_error(req, error){ switch (status){ case 401: $("#one_error").hide(); - $("#auth_error").show(); + $("#auth_error").fadeIn("slow"); break; case 500: $("#auth_error").hide(); - $("#one_error").show(); + $("#one_error").fadeIn("slow"); break; } } @@ -47,25 +47,18 @@ function authenticate(){ }); } -function logout(){ - oZones.Auth.logout(); -} - - $(document).ready(function(){ - $("#login_btn").click(function () { + $("#login_form").submit(function (){ authenticate(); + return false; }); - $("input").keydown(function (e){ - if (e.keyCode == 13) { - authenticate(); - } - }); + //compact login elements according to screen height + if (screen.height <= 600){ + $('div#logo_sunstone').css("top","15px"); + $('div#login').css("top","10px"); + $('.error_message').css("top","10px"); + }; - $("#logout_btn").click(function () { - logout(); - }); - - $("input#username.box").get(0).focus(); + $("input#username.box").focus(); }); diff --git a/src/ozones/Server/public/js/plugins/aggregated-tab.js b/src/ozones/Server/public/js/plugins/aggregated-tab.js index 710e5fa53b..b340bc6dd3 100644 --- a/src/ozones/Server/public/js/plugins/aggregated-tab.js +++ b/src/ozones/Server/public/js/plugins/aggregated-tab.js @@ -555,7 +555,8 @@ $(document).ready(function(){ "bAutoWidth":false, "aoColumnDefs": [ { "sWidth": "35px", "aTargets": [0,2] }, - { "sWidth": "100px", "aTargets": [1,3,4,5,10] } + { "sWidth": "60px", "aTargets": [7,8] }, + { "sWidth": "100px", "aTargets": [1,3,4,6,10] } ] }); @@ -579,7 +580,7 @@ $(document).ready(function(){ "aoColumnDefs": [ { "sWidth": "60px", "aTargets": [10] }, { "sWidth": "35px", "aTargets": [0,2,8,9,11] }, - { "sWidth": "100px", "aTargets": [1,3,4,5,7] } + { "sWidth": "100px", "aTargets": [1,3,4,6,7] } ] }); diff --git a/src/ozones/Server/public/js/plugins/dashboard-tab.js b/src/ozones/Server/public/js/plugins/dashboard-tab.js index 34553f45ab..a0b43908e1 100644 --- a/src/ozones/Server/public/js/plugins/dashboard-tab.js +++ b/src/ozones/Server/public/js/plugins/dashboard-tab.js @@ -139,9 +139,6 @@ var dashboard_tab_content =