Koha/koha-tmpl/intranet-tmpl/prog/js
Owen Leonard 9863c18cc8
Bug 32933: Use val() instead of attr("value") when getting field values with jQuery
This patch replaces instances in Koha's templates where "attr('value')" is
used to get the value of a form field, using "val()" instead. This
ensures that we get the current value of the field, not just the
value of the field when the page first loaded.

To test, apply the patch and test the following pages:

- Tools -> Tags. Use the "Check lists" form in the right-hand sidebar
  to test the approval status of some approved and rejected tags. It
  should correctly respond with the tag's status.
- Cataloging -> Label creator.
  - New -> Printer profile. Each offset and creep field should correctly
    reflect the selected value in the "Units" dropdown. Changing the
    dropdown should make the units change accordingly.
  - New -> Label template. Perform the same tests as above.
- Tools -> Patron card creator.
  - New -> Layout. If necessary, check the "Field 1" checkbox. The
    units should be displayed correctly and change as you change the
    "Units" dropdown.
  - New -> Printer profile,
  - New -> Card template: Perform the same tests as above.
- Lists -> List contents.
  - Check that the "Add to" dropdown menu works for adding selected
    titles to a cart or another list.
- Back record modification. Submit a batch of records for modification
  and go to Administration -> Manage jobs.
  - View the details of the job you just submitted.
  - Confirm that the "Add modified records to the following list"
    dropdown works correctly.
- Cataloging -> Find a bibliographic record -> Edit items.
  - Confirm that clicking a cell in the table of existing items
    triggers the "Edit item/Delete item" menu, and that these links
    work correctly.

Works as described.

Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-02-21 09:11:17 -03:00
..
pages Bug 32933: Use val() instead of attr("value") when getting field values with jQuery 2023-02-21 09:11:17 -03:00
vue Bug 32898: Remove unecessary async/await 2023-02-21 09:10:14 -03:00
acq.js
acquisitions-menu.js
additem.js
addorderiso2709.js Bug 32046: When adding a new records from a staged files, there are style issues 2022-11-23 09:34:00 -03:00
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
authorities-detail-modal.js Bug 31660: MARC preview for authority search results has hidden contents 2022-10-03 15:10:44 -03:00
authtype.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
cataloging_additem.js Bug 32933: Use val() instead of attr("value") when getting field values with jQuery 2023-02-21 09:11:17 -03:00
categories.js
charts.js
checkout_renewals_modal.js Bug 30642: (follow-up) Change sql and adapt for translations 2023-02-10 11:07:58 -03:00
checkouts.js Bug 31209: Add a span with a class for items.enumchron in the checkouts list 2023-02-20 09:44:17 -03:00
datatables.js Bug 32401: Remove x-koha-query support 2023-02-02 11:59:26 -03:00
desk_selection.js
elasticsearch-mappings.js
file-upload.js
funds_sorts.js
holds.js Bug 24860: (QA follow-up) Terminology and translation fixes 2022-11-04 19:39:58 -03:00
ill-availability-partner.js
ill-availability.js
ill-list-table.js
item_search_fields.js
job_progess.js Bug 31891: (bug 27421 follow-up) Remove one additional click 2022-11-22 09:19:59 -03:00
letter.js Bug 24616: (QA follow-up) Remove "This has bug" comment 2023-02-06 18:34:12 -03:00
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js
members-menu.js Bug 30952: Staff interface redesign (header) 2022-10-12 15:58:16 -03:00
members.js
merge-record.js
messaging-preference-form.js Bug 31166: Digest option is not selectable for phone when PhoneNotification is enabled 2022-12-13 14:59:51 -03:00
offlinecirc.js
onboarding.js
patron-autocomplete.js Bug 32772: Make all autocomplete searches 'starts_with' 2023-02-06 18:32:58 -03:00
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js
restrictiontypes.js
rotating-collections.js
select2.js Bug 31646: Add Select2 focus to text search field 2022-10-11 10:16:35 -03:00
serials-toolbar.js
showpredictionpattern.js
sms_providers.js Bug 32618: Add 'page-section' to various administration pages 2023-01-31 09:36:42 -03:00
staff-global.js Bug 32204: Check for hash before setting focus 2023-01-27 15:20:45 -03:00
subscription-add.js Bug 31935: (follow-up) Make form look better 2023-01-05 09:24:29 -03:00
table_filters.js
tools-menu.js
upload-images.js
viewlog.js
xmlControlfield.js
z3950_search.js