Bugzilla – Attachment 150398 Details for
Bug 31410
Set focus for cursor to Server name when adding a new Z39.50 or SRU server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31410: Set focus for cursor to Server name when adding a new Z39.50/SRU server
Bug-31410-Set-focus-for-cursor-to-Server-name-when.patch (text/plain), 2.19 KB, created by
Nick Clemens (kidclamp)
on 2023-04-28 16:25:51 UTC
(
hide
)
Description:
Bug 31410: Set focus for cursor to Server name when adding a new Z39.50/SRU server
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2023-04-28 16:25:51 UTC
Size:
2.19 KB
patch
obsolete
>From 8ea1641401b894b9d9f5fe5828a4810cf04aea97 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sun, 5 Feb 2023 00:17:01 +0000 >Subject: [PATCH] Bug 31410: Set focus for cursor to Server name when adding a > new Z39.50/SRU server > >This makes sure that the focus is in the first form field when >adding a new Z39.50 or SRU server. > >To test: >* Administration > Z39.50/SRU servers >* Add a new server for each >* Verify the focus is not in the form >* Apply patch >* Verify the focus is now in the first form field >* Edit an existing server >* Verify the focus is not in the form > >Not having the focus when editing is to avoid accidental changes. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> >Signed-off-by: Nick Clemens <nick@bywatersolutions.com> >--- > .../intranet-tmpl/prog/en/modules/admin/z3950servers.tt | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >index 3b458dc9e7..e3197dbfb4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tt >@@ -86,7 +86,12 @@ > <fieldset class="rows"> > <ol> > <li><label for="name" class="required">Server name: </label> >- <input type="text" name="servername" id="servername" size="65" maxlength="100" value="[% server.servername | html %]" required="required" /> <span class="required">Required</span> >+ [% IF server.servername %] >+ <input type="text" name="servername" id="servername" size="65" maxlength="100" value="[% server.servername | html %]" required="required" /> >+ [% ELSE %] >+ <input type="text" name="servername" id="servername" class="focus" size="65" maxlength="100" value="[% server.servername | html %]" required="required" /> >+ [% END %] >+ <span class="required">Required</span> > </li> > > <li><label for="host" class="required">Hostname: </label> <input type="text" name="host" id="host" size="30" value="[% server.host | html %]" required="required" /> <span class="required">Required</span> >-- >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 31410
:
146180
|
146265
| 150398