Skip to content

Commit

Permalink
Client side: Fixed editable with Checkbox control [Closed #147]
Browse files Browse the repository at this point in the history
  • Loading branch information
o5 committed Nov 12, 2014
1 parent 84301d7 commit aebc26b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions client-side/grido.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
that.disableSelection.call(that);
}

$('th.checker [type=checkbox]', $(this).parent()).click();
$(that.selector, $(this).closest('tr')).click();

if (event.shiftKey) {
that.enableSelection.call(that);
Expand Down Expand Up @@ -660,7 +660,9 @@
{
var data = {},
that = this,
newValue = this.editControlObject.val();
newValue = $('[type=checkbox]', this.editControlObject).length
? ~~+ $('[type=checkbox]', this.editControlObject).is(':checked')
: this.editControlObject.val();

if (newValue === oldValue) {
$td.html(oldHtml);
Expand Down

0 comments on commit aebc26b

Please sign in to comment.