From eb34e20454bad297f9b1b9a538df42408167484b Mon Sep 17 00:00:00 2001 From: aljawaid <10233708+aljawaid@users.noreply.github.com> Date: Wed, 1 Feb 2023 23:24:57 +0000 Subject: [PATCH] NEW: Select Input on Mouseover - this will save a mouse click when selecting fields in login, password and two-factor pages --- Assets/js/application-branding.js | 40 +++++++++++++++++++++++++++++++ README.md | 3 +++ 2 files changed, 43 insertions(+) diff --git a/Assets/js/application-branding.js b/Assets/js/application-branding.js index 1446314..05e153a 100644 --- a/Assets/js/application-branding.js +++ b/Assets/js/application-branding.js @@ -1 +1,41 @@ // KANBOARD PLUGIN - JS FILE + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-username"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-password"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-captcha"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); + +// SELECT INPUT ON MOUSOVER +$(document).ready(function() { + const input = document.getElementById("form-code"); + if (input !== null) { + input.addEventListener('mouseover', () => { + input.select(); + }) + } +}); diff --git a/README.md b/README.md index 36eab8b..90757f9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ Features - Show application name and copyright - Include metadata and generic logo (for when sharing links) - Show Unsplash image background +- Move your mouse over the username and password fields to automatically select and save time **New Reset Password Page** - Show User IP Address @@ -29,11 +30,13 @@ Features - Show application name and copyright - Include metadata and generic logo (for when sharing links) - Show Unsplash image background +- Move your mouse over the username and captcha fields to automatically select and save time **New 2FA Page** - A complete revamp of the two factor code check page which shows after login - Added links to cancel the check by returning to the login page, unlocking the default login-lock behaviour - Added `domain.com/security-check` for when url rewriting is enabled +- Move your mouse over the password field to automatically select and save time **Reset Password Email** - Show application name and copyright