Bugzilla – Attachment 112548 Details for
Bug 26830
Set focus for cursor to name input box when creating a new list in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26830: Set focus for cursor to name input box when creating a new list in the OPAC
Bug-26830-Set-focus-for-cursor-to-name-input-box-w.patch (text/plain), 1.69 KB, created by
Owen Leonard
on 2020-10-27 10:31:44 UTC
(
hide
)
Description:
Bug 26830: Set focus for cursor to name input box when creating a new list in the OPAC
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2020-10-27 10:31:44 UTC
Size:
1.69 KB
patch
obsolete
>From d9c8e2a91e9846b82a565dbd25b1b36a76ad3647 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Mon, 26 Oct 2020 19:46:30 +0000 >Subject: [PATCH] Bug 26830: Set focus for cursor to name input box when > creating a new list in the OPAC > >This patch adds the "focus" class to the list name input box in order to >automatically set focus on the field. > >To test, apply the patch and log in to the OPAC. > >- Go to Lists -> New list. >- The cursor focus should automatically be on the "list name" field. >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >index 15bf6d4f2c..b59c331a24 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt >@@ -616,7 +616,7 @@ > <ol> > <li> > <label class="required" for="shelfname">List name: </label> >- <input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelf.shelfname | html %]" required="required" class="required"/> >+ <input type="text" id="shelfname" name="shelfname" maxlength="255" value="[% shelf.shelfname | html %]" required="required" class="focus required"/> > <span class="required">Required</span></li> > <li> > <label for="sortfield" >Sort this list by: </label> >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26830
:
112548
|
112593
|
112791