Koha/koha-tmpl/intranet-tmpl/prog/js
Owen Leonard 79960f3c65 Bug 29278: Fix selector of hint used to show age
This patch modifies the patron entry form to correct a problem with the
write_age() function introduced by the switch to Flatpickr on this page
(Bug 28937).

Rather than selecting the element based on the sequence of elements on
the page, we should add an ID for direct selection.

To test, apply the patch and go to Patrons.

- Locate a patron record which has a date of birth saved.
  - When you open that patron for editing, you should see their age
    displayed below the date of birth input field, e.g. "Age: 23 years 9
    months."
  - Changing the date in the date of birth field should update the age
    string correctly.
- Go to Patrons -> New patron.
  - The date of birth field should have a hint showing the required date
    format, e.g. "(DD.MM.YYYY)".
  - When you select a date of birth using the Flatpickr calendar the age
    string should be updated correctly.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-10-25 13:56:35 +02:00
..
pages Bug 28180: Fix collision with existing verify_images 2021-10-21 12:24:04 +02:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
automatic_item_modification_by_age.js
background-job-progressbar.js
basket.js
basketgroup.js
biblio_framework.js
browser.js
calendar.js
cart.js
cashup_modal.js
catalog.js
cataloging.js Bug 28445: UI change for repeatable and regex 2021-10-18 11:28:40 +02:00
cataloging_additem.js
categories.js
charts.js
checkouts.js
circ-patron-search-results.js Bug 29193: Specify paging as false in circ-patron-search-results.js 2021-10-12 10:14:35 +02:00
datatables.js
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js
holds.js
ill-availability-partner.js
ill-availability.js
ill-list-table.js Bug 29240: Centralise from/to handling 2021-10-19 09:50:08 +02:00
item_search_fields.js
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js
members-menu.js
members.js Bug 29278: Fix selector of hint used to show age 2021-10-25 13:56:35 +02:00
merge-record.js
messaging-preference-form.js
offlinecirc.js
onboarding.js
register_selection.js
rotating-collections.js
select2.js Bug 29133: Correct select2 strings 2021-10-05 09:17:20 +02:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js
subscription-add.js
table_filters.js
tools-menu.js
viewlog.js
xmlControlfield.js
z3950_search.js