Skip to content

Commit

Permalink
apparently, one must check whether a checkbox is checked or not using…
Browse files Browse the repository at this point in the history
… .prop() and no longer with .attr(), since jQuery 1.6+
  • Loading branch information
maddingue committed Jun 22, 2015
1 parent 3863261 commit 0f91e32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/js/mytalks.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (window.act) {
$(function() {
$(".mytalks_submit").remove();
$(":checkbox").each(function() {
toggle_image(this, $(this).val(), $(this).attr("checked"));
toggle_image(this, $(this).val(), $(this).prop("checked"));
});
});
}
Expand Down

0 comments on commit 0f91e32

Please # to comment.