Bug 27191: Set focus on first input when adding a new patron category
authorKatrin Fischer <katrin.fischer.83@web.de>
Thu, 18 Aug 2022 20:15:30 +0000 (20:15 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 7 Sep 2022 20:45:20 +0000 (13:45 -0700)
When adding a new patron category, the focus/cursor should be
in the first input field of the form: Category code

To test:
* Add a new patron category in administration > patron categories
  - cursur is in no field
* Apply patch
* Add another new patron category
  - cursor is now in the first input field of the form: Category code

Signed-off-by: Barbara Johnson <barbara.johnson@bedfordtx.gov>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt

index 1982459..7447910 100644 (file)
                 [% ELSE %]
                     <li>
                         <label for="categorycode" class="required">Category code: </label>
-                        <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required" required="required" />
+                        <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" class="required focus" required="required" />
                         <span class="required">Required</span>
                     </li>
                 [% END %]