Koha/koha-tmpl/intranet-tmpl/prog/en/includes
Owen Leonard de4434bd4a Bug 30640: Focus does not always move to correct search header form field
This patch updates the staff interface's global JavaScript to
accommodate changes in the way focus is being handled after the jQuery
upgrade (see: https://github.com/jquery/jquery/issues/4950).

The "focus" class is removed from search header include files so that
there isn't a contradiction between which form field has the focus class
and which form field is displayed in the active tab.

To test, apply the patch and view various pages in the staff interface.

- On pages where focus is not being directed to a form field within the
  main content of the page, the form field in the active search header
  tab should have focus on page load:

  - Patron details
  - System preferences
  - Cities and towns

  Also test pages where a tab other than the first one is preselected:

  - Bibliographic details page
  - Patron lists

  On these pages, focus should move to the active tab's form field when
  you switch tabs.

- On pages where focus is being sent to another form field, it should
  work correctly:

  - Patrons home page
  - Check in
  - Acquisitions home page

Signed-off-by: Séverine Queune <severine.queune@bulac.fr>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-05-18 17:22:08 -10:00
..
background_jobs Bug 29346: Add better reporting 2022-05-05 11:17:36 -10:00
catalogue Bug 17748: Remove unecessary html filter 2022-03-24 14:22:10 -10:00
csv_headers Bug 17748: (follow-up) Remove availability column 2022-03-24 14:22:10 -10:00
mana Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
modals Bug 29519: Allow resolution of claims return at checkin 2022-02-14 21:41:38 -10:00
str Bug 29648: Add item - broken FIXME 2022-04-27 11:20:43 -10:00
virtualshelves/merge
about-team.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
accounts.inc Bug 29602: (follow-up) fix TemplateToolkit.t 2022-04-20 20:43:14 -10:00
acquisitions-add-to-basket.inc Bug 28079: Set focus to search box field when adding an order to basket 2021-10-21 10:21:50 +02:00
acquisitions-menu.inc Bug 16258: (QA follow-up) Capitalise EDIFACT 2022-04-13 15:55:39 +02:00
acquisitions-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
acquisitions-toolbar.inc Bug 28082: Add acquisitions toolbar to vendors on vendor search page 2022-05-10 15:17:17 -10:00
additional-fields-display.inc
additional-fields-entry.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
admin-items-search-field-form.inc Bug 20689: (follow-up) Correct scope of template variables 2022-03-01 22:47:46 -10:00
admin-menu.inc Bug 16258: (QA follow-up) Capitalise EDIFACT 2022-04-13 15:55:39 +02:00
adv-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
auth-finder-search.inc
authorities-search-results.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
authorities-search.inc Bug 27631: (RM follow-up) Fix missing h1 to div 2022-04-20 09:03:38 -10:00
authorities-toolbar.inc
authorities.inc
authorities_js.inc Bug 26019: Koha should set SameSite attribute on cookies 2022-04-13 15:55:38 +02:00
authority-detail-modal.inc Bug 29965: Preview MARC in authority search results 2022-02-23 22:05:33 -10:00
av-build-dropbox.inc Bug 30603: Display Sort1 and Sort2 as free text if no AV exists 2022-05-10 23:09:09 -10:00
background_jobs_update_elastic_index.inc Bug 27344: Implement Elastic's update_index_background using Koha::BackgroundJob 2022-05-03 11:19:49 -10:00
biblio-title-head.inc
biblio-title.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
biblio-view-menu.inc Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
blocked-fines.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
blocking_errors.inc
borrower_debarments.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
branch-selector.inc
budget_planning.inc
budgets-active-currency.inc
budgets-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
budgets-admin-toolbar.inc
calendar.inc Bug 30706: Fix space in check for dateformat preference 2022-05-09 10:02:35 -10:00
cat-menu.inc
cat-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
cat-toolbar.inc Bug 9565: Deleting a biblio should alert/fail if there are existent subscriptions 2021-12-10 21:15:30 -10:00
catalog-strings.inc Bug 9565: (follow-up) Deleting a biblio should alert/fail if there are existent subscriptions 2021-12-10 21:15:30 -10:00
cataloging-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
catalogue-search-box.inc Bug 28356: Consolidate catalogue search box code 2021-09-21 20:22:57 +02:00
cateditor-ui.inc Bug 26019: Koha should set SameSite attribute on cookies 2022-04-13 15:55:38 +02:00
cateditor-widgets-marc21.inc
category-out-of-age-limit.inc
chart.inc
checkin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
checkouts-table-footer.inc Bug 29459: Replace some missed datetimepickers in circulation templates with Flatpickr 2021-11-15 12:38:39 +01:00
checkouts-table.inc Bug 29519: Allow resolution of claims return at checkin 2022-02-14 21:41:38 -10:00
circ-menu.inc Bug 6815: Don't make an AJAX request to generate the modal 2022-03-24 14:22:10 -10:00
circ-nav.inc Bug 19532: Recalls on intranet 2022-03-14 22:45:51 -10:00
circ-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
cities-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
clubs-table.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
columns_settings.inc Bug 29648: Authorised values view 2022-04-27 11:20:43 -10:00
contracts-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
country-list.inc
currencies-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
datatables.inc
date-format.inc
delimiter_text.inc
desks-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
doc-head-close-receipt.inc
doc-head-close.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
doc-head-open.inc
empty_line.inc
facets.inc Revert "Bug 26860: facets.inc refactor availability facet" 2021-08-16 12:24:58 +02:00
filter-orders.inc Bug 27287: Make note fields from orders history searchable 2021-10-21 12:24:04 +02:00
form-blocks.inc
format_price.inc
greybox.inc
guided-reports-view.inc Bug 28454: Add Koha version number to database schema link in reports 2021-09-29 12:47:33 +02:00
header.inc
holds_table.inc Bug 30583: Fix hold system for translated templates 2022-04-21 13:41:36 -10:00
home-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
html_helpers.inc Bug 29609: Centralized code to build the link to a biblio detail page 2022-04-08 15:49:16 +02:00
i18n.inc
ill-availability-table.inc
ill-list-table-strings.inc
ill-list-table.inc
ill-toolbar.inc
installer-doc-head-close.inc Bug 30011: Update links to jQueryUI assets, remove datepicker references, etc. 2022-04-08 15:49:16 +02:00
installer-intranet-bottom.inc Bug 29155: Update links to jQuery and jQuery Migrate files 2022-04-25 10:00:22 -10:00
installer-strings.inc
intranet-bottom.inc
intranetstylesheet.inc
js-date-format.inc
js-patron-format-address.inc Bug 30093: Fix QA failures 2022-04-04 09:47:00 +02:00
js-patron-format.inc Bug 30055: Make patron searches use the REST API 2022-04-04 09:46:57 +02:00
js-patron-get-age.inc Bug 30059: Deal with timezones 2022-03-24 14:22:10 -10:00
js_includes.inc Bug 27750: Remove jquery.cookie.js plugin 2022-05-02 11:22:58 -10:00
keyboard_shortcuts.inc
labels-toolbar.inc
langmenu-staff-top.inc
last-borrower.inc
letters-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
member-alt-address-style.inc Bug 30603: Fix other occurrences 2022-05-10 23:09:09 -10:00
member-alt-contact-style.inc Bug 29213: Fix typo ol in member-alt-contact-style.inc 2021-10-15 11:34:26 +02:00
member-display-address-style.inc Bug 21794: (QA follow-up) Separate city and country with a comma 2021-09-09 10:59:38 +02:00
member-display-alt-address-style.inc Bug 21794: (QA follow-up) Separate city and country with a comma 2021-09-09 10:59:38 +02:00
member-main-address-style.inc Bug 30603: Fix other occurrences 2022-05-10 23:09:09 -10:00
members-toolbar.inc Bug 30611: (QA follow-up) Only show reset option for allowed categories 2022-05-10 15:17:17 -10:00
merge-record.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
messaging-preference-form.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
noadd-warnings.inc
onboarding_messages.inc
page-numbers.inc
password_check.inc
patron-age.inc
patron-article-requests.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
patron-return-claims.inc Bug 27296: Return claims should be filtered by default to show unresolved claims 2021-11-03 15:40:52 +01:00
patron-search-box.inc Bug 30640: Focus does not always move to correct search header form field 2022-05-18 17:22:08 -10:00
patron-search-header.inc Bug 30640: Focus does not always move to correct search header form field 2022-05-18 17:22:08 -10:00
patron-search.inc Bug 30639: Split search terms for patron search 2022-05-06 10:33:10 -10:00
patron-title.inc Bug 29602: (follow-up) fix duplicate, missing or mismatching <span> 2022-04-19 21:25:51 -10:00
patron-toolbar.inc
patron_messages.inc Bug 29602: (follow-up) Surround strings with span tag 2022-04-19 21:25:51 -10:00
patroncards-errors.inc Bug 28576: Update the maximum size of an image. 2022-02-14 21:41:38 -10:00
patroncards-toolbar.inc
patronfields.inc Bug 30576: Use DefaultPatronSearchFields in patron search 2022-04-28 10:49:20 -10:00
patrons-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
permissions.inc Bug 26346: (QA follow-up) Clarify permission 2022-04-12 17:13:02 +02:00
popup-bottom.inc
pos-menu.inc
prefs-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
prefs-menu.inc Bug 28438: Capitalization: Various corrections 2021-09-28 15:12:45 +02:00
recalls.inc Bug 30291: Changes to staff client files 2022-05-05 11:17:36 -10:00
relatives-issues-table.inc
renew_results.inc
renew_strings.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
reports-menu.inc
reports-toolbar.inc Bug 29680: Change markup to correct button radius 2022-01-05 13:49:09 -10:00
resort_form.inc
rotating-collections-toolbar.inc
search_indexes.inc Bug 20463: (follow-up) Remove option from search templates 2021-10-25 14:08:06 +02:00
select2.inc
serials-menu.inc Bug 28719: Change somes links in the serials page to avoid them leading to nothing 2021-08-16 09:56:37 +02:00
serials-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
serials-toolbar.inc
slip-print.inc
stockrotation-toolbar.inc
subscriptions-search.inc
subtype_limits.inc Bug 22605: (QA follow-up) Make Braille search option stick 2022-03-24 14:22:10 -10:00
subtypes_unimarc.inc
suggestions-add-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
timepicker.inc
tools-item-action.inc
tools-menu.inc Bug 29821: Add interface for generating barcodes using svc/barcode 2022-04-08 15:49:17 +02:00
tools-nomatch-action.inc
tools-overlay-action.inc
transaction_types.inc Bug 28138: (follow-up) Add empty option to payment type selection 2022-05-04 14:29:23 -10:00
transfer_reasons.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
validator-strings.inc
vendor-menu.inc
virtualshelves-toolbar.inc
waiting_holds.inc Bug 27868: Add expiration date to holds awaiting pickup 2022-01-28 11:09:07 -10:00
wysiwyg-systempreferences.inc Bug 26949: Upgrade TinyMCE in the staff interface from 5.0.16 to 5.9.2 2021-10-05 10:58:13 +02:00
xslt-handler.inc Bug 29602: Surround strings with span tag 2022-04-19 21:25:51 -10:00
z3950-admin-search.inc Bug 27631: Changed <h1> around logo to <div> 2022-04-20 09:03:37 -10:00
z3950_search.inc