Skip to content

Commit

Permalink
Fixed checkbox bug in grid.js
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspard committed Oct 7, 2012
1 parent 280f75f commit c7008c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/javascripts/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ Grid.valueFromInput = function(input) {
val.show = input.select('option[value="'+val.value+'"]').first().innerHTML
} else {
if (input.type == 'checkbox') {
val.value = input.checked ? input.value : (input.getAttribute('data-off') || cell.getAttribute('data-v'))
val.value = input.checked ? input.value : (input.getAttribute('data-off') || input.up('TD').getAttribute('data-v'))
} else {
val.value = input.value
}
Expand Down

0 comments on commit c7008c2

Please sign in to comment.