hikalkan/jtable — pull request #1329 by deed02392 (2014-05-30 13:44:43+00:00)
Title: Bug fix for checkboxes in form dialogues

This commit fixes a bug in form dialogues where the checkbox property is not actually toggled back a second time when using the label text. The issue is caused by the use of the `checked` attribute (`.attr('checked'`) because changing this attribute is not guarenteed to update the element `checked` property. Attached is an image proving how this can arise in an updated version of Chrome. See how the attribute is present but the property does not match. This was after clicking the `span` element a second time.

Using the `.prop` method of the jQuery we use fixes this issue totally. It is suggested other usage of `attr` on checkboxes is revised.

Proof:
![attr-checked-but-not-prop-proof](https://cloud.githubusercontent.com/assets/3536087/3131049/1cbb4fd8-e800-11e3-8a35-3b1cd244a56b.PNG)