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: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/