Permalink
Browse files

fix: pro-IUAPDESIGN-96:友云采:grid中取消选中之后的全选显示不对

  • Loading branch information...
1 parent 928fdf1 commit eafb2dcb8a2ab29530ebeafa497108e2f3c381db liuyk committed Oct 21, 2016
Showing with 18 additions and 2 deletions.
  1. +8 −0 dist/js/u-grid.js
  2. +2 −2 dist/js/u-grid.min.js
  3. +8 −0 js/gridCompOperateRow.js
View
@@ -3357,6 +3357,10 @@
this.selectRowsObj.push(this.dataSourceObj.rows[rowIndex]);
this.selectRowsIndex.push(rowIndex);
this.dataSourceObj.rows[rowIndex].checked = true;
+ if (this.selectRows.length == this.dataSourceObj.rows.length) {
+ //修改全选标记为false
+ $('#' + this.options.id + '_header_multi_input').addClass('is-checked');
+ }
if (typeof this.options.onRowSelected == 'function') {
var obj = {};
obj.gridObj = this;
@@ -3412,6 +3416,10 @@
}
});
this.dataSourceObj.rows[rowIndex].checked = false;
+
+ //修改全选标记为false
+ $('#' + this.options.id + '_header_multi_input').removeClass('is-checked');
+
if (typeof this.options.onRowUnSelected == 'function') {
var obj = {};
obj.gridObj = this;
Oops, something went wrong.

0 comments on commit eafb2dc

Please sign in to comment.