Bugzilla – Attachment 143344 Details for
Bug 31406
Set focus for cursor to Name input when adding a new item search field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31406: Set focus to name on new fields
Bug-31406-Set-focus-to-name-on-new-fields.patch (text/plain), 1.50 KB, created by
Isobel Graham
on 2022-11-06 15:04:43 UTC
(
hide
)
Description:
Bug 31406: Set focus to name on new fields
Filename:
MIME Type:
Creator:
Isobel Graham
Created:
2022-11-06 15:04:43 UTC
Size:
1.50 KB
patch
obsolete
>From bcd37888a36ec23012fa9bbf98dd140e01e01e67 Mon Sep 17 00:00:00 2001 >From: Isobel Graham <isobel.graham09@gmail.com> >Date: Sun, 6 Nov 2022 14:59:27 +0000 >Subject: [PATCH] Bug 31406: Set focus to name on new fields > >Focus is directed to the name field when >you want to add a new field. > >Test plan >1. Got to administration and then item search >fields. >2. Add new field and focus should be set to >name. >--- > .../prog/en/includes/admin-items-search-field-form.inc | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc >index e7286bf62a..2959090715 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-items-search-field-form.inc >@@ -4,10 +4,10 @@ > [% IF field %] > <span class="label">Name: </span> > [% field.name | html %] >- <input type="hidden" name="name" value="[% field.name | html %]"> >+ <input type="hidden" name="name" value="[% field.name | html %]" class="focus"> > [% ELSE %] > <label class="required" for="name">Name: </label> >- <input type="text" name="name" id="name" class="required" required="required" /> >+ <input type="text" name="name" id="name" class="required focus" required="required" /> > <span class="required">Required</span> > [% END %] > </li> >-- >2.30.2
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 31406
: 143344