Permalink
Browse files

fix: grid中checkbox值变时dataTable字段值不变

  • Loading branch information...
1 parent 18cc826 commit 12011c8360bde9a3864b032ceb42190def5e712a @whizbz11 whizbz11 committed Dec 5, 2016
Showing with 5 additions and 0 deletions.
  1. +5 −0 js/component/keroa-grid.js
@@ -238,6 +238,11 @@ var GridAdapter = BaseAdapter.extend({
stopEvent(e);
return false;
}
+ if ($(this).parent().hasClass('is-checked')) {
+ this.checked = true;
+ } else {
+ this.checked = false;
+ }
var value = this.checked?"Y":"N";
var column = obj.gridCompColumn
var field = column.options.field

0 comments on commit 12011c8

Please sign in to comment.