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: oleon...@myacpl.org
          Reporter: oleon...@myacpl.org
        QA Contact: testo...@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.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
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/

Reply via email to