[Koha-bugs] [Bug 15883] Upgrade jQuery from v1.7.2 in the staff client
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Sat Apr 9 08:20:55 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15883
--- Comment #17 from Julian Maurice <julian.maurice at biblibre.com> ---
Created attachment 50098
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=50098&action=edit
Bug 15883: Use .prop() instead of .attr() for 'checked'
According to https://jquery.com/upgrade-guide/1.9/#attr-versus-prop-
.attr() is no longer correct to access the checked state of a checkbox.
This patch do the following replacements:
.attr('checked') => .prop('checked')
.attr('checked, '') => .prop('checked', false)
.attr('checked, 'checked') => .prop('checked', true)
.attr('checked', boolValue) => .prop('checked', boolValue)
.removeAttr('checked') => .prop('checked', false)
.attr('checked') == 'checked' => .is(':checked')
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list