From 2e1d1474115313bce9bde0ae455032ebf2241589 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Wed, 25 Jul 2012 11:27:14 +0100 Subject: [PATCH 1/2] Autoselect username input on cookie login page --- ChangeLog | 1 + js/functions.js | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7f30c2356dac..f3e77b53694d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -43,6 +43,7 @@ VerboseMultiSubmit, ReplaceHelpImg + Add Ajax support to Fast filter in order to search the term in all database tables - bug #3535015 [navi] DbFilter, TableFilter clear button hidden on Chrome + rfe #3528994 [interface] Allow wrapping possibly long values in replication-status table ++ [interface] Autoselect username input on cookie login page 3.5.3.0 (not yet released) - bug #3539044 [interface] Browse mode "Show" button gives blank page if no results anymore diff --git a/js/functions.js b/js/functions.js index b6195c13bf92..cb84e9afc755 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3868,4 +3868,5 @@ $(function () { */ $(function () { $('.js-show').show(); + $('#loginform #input_username').select(); }); From d3c06829e800bd11ee46ddc069ee4da54d48f960 Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Wed, 25 Jul 2012 13:04:27 +0100 Subject: [PATCH 2/2] Speed up selectors --- js/functions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/functions.js b/js/functions.js index cb84e9afc755..321ba718323d 100644 --- a/js/functions.js +++ b/js/functions.js @@ -3867,6 +3867,7 @@ $(function () { * Reveal the login form to users with JS enabled */ $(function () { - $('.js-show').show(); - $('#loginform #input_username').select(); + var $loginform = $('#loginform'); + $loginform.find('.js-show').show(); + $loginform.find('#input_username').select(); });