[Koha-bugs] [Bug 32933] New: Use val() instead of attr("value") when getting field values with jQuery
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 9 17:48:56 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32933
Bug ID: 32933
Summary: Use val() instead of attr("value") when getting field
values with jQuery
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: ASSIGNED
Severity: minor
Priority: P5 - low
Component: Templates
Assignee: oleonard at myacpl.org
Reporter: oleonard at myacpl.org
QA Contact: testopia at bugs.koha-community.org
This issue came up because I noticed that the tag review page's "test" feature
wasn't working. Clicking the test button didn't trigger any message about the
tag's approval status.
$(input).attr("value") is getting the initial contents of the "value" attribute
when the DOM initially loads. In the case of the tags page, this will always be
an empty string.
Using $(input).val() gets the current value of the field.
I think other instances of this code aren't buggy in the same way, but I think
it's worth updating all of them for consistency.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list