From cb9ae534936cd0eb8d441e32b30e0f1472e35c5f Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 20 Oct 2020 15:38:21 +0000 Subject: [PATCH] Bug 26753: Set focus for cursor to password field on Overdrive login popup on OPAC This patch modifies the OverDrive login process so that clicking the "Log in to your OverDrive account" link automatically puts the focus on the password field when the modal displays. Unrelated change: A redundant "document.ready" function has been removed. To test you must have OverDrive credentials set in system preferences. - Log in to the OPAC. - On the "Your summary" page, open the "OverDrive account" tab. - Click the "Log in to your OverDrive account" link. - A modal dialog should appear, and the cursor focus should automatically be on the password field. Signed-off-by: Barbara Johnson --- koha-tmpl/opac-tmpl/bootstrap/en/includes/overdrive-login.inc | 2 +- koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/overdrive-login.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/overdrive-login.inc index 7e9bcba8e4..cf3ea1912d 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/overdrive-login.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/overdrive-login.inc @@ -11,7 +11,7 @@