Skip to content

Commit

Permalink
Select All Box Bug Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thangaduraicse committed Mar 19, 2016
1 parent f219ba6 commit 1363b42
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions build/Griddle.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,13 +617,13 @@ return /******/ (function(modules) { // webpackBootstrap
};
},
_toggleSelectAll: function _toggleSelectAll() {

var visibleRows = this.getDataForRender(this.getCurrentResults(), this.columnSettings.getColumns(), true),
newIsSelectAllChecked = !this.state.isSelectAllChecked,
newSelectedRowIds = JSON.parse(JSON.stringify(this.state.selectedRowIds));

var self = this;
forEach(visibleRows, function (row) {
this._updateSelectedRowIds(row[this.props.uniqueIdentifier], newSelectedRowIds, newIsSelectAllChecked);
self._updateSelectedRowIds(row[self.props.uniqueIdentifier], newSelectedRowIds, newIsSelectAllChecked);
}, this);

this.setState({
Expand Down Expand Up @@ -4238,16 +4238,16 @@ return /******/ (function(modules) { // webpackBootstrap
/* 9 */
/***/ function(module, exports) {

module.exports = function(module) {
if(!module.webpackPolyfill) {
module.deprecate = function() {};
module.paths = [];
// module.parent = undefined by default
module.children = [];
module.webpackPolyfill = 1;
}
return module;
}
module.exports = function(module) {
if(!module.webpackPolyfill) {
module.deprecate = function() {};
module.paths = [];
// module.parent = undefined by default
module.children = [];
module.webpackPolyfill = 1;
}
return module;
}


/***/ },
Expand Down
4 changes: 2 additions & 2 deletions scripts/griddle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -560,13 +560,13 @@ var Griddle = React.createClass({
}
},
_toggleSelectAll: function () {

var visibleRows = this.getDataForRender(this.getCurrentResults(), this.columnSettings.getColumns(), true),
newIsSelectAllChecked = !this.state.isSelectAllChecked,
newSelectedRowIds = JSON.parse(JSON.stringify(this.state.selectedRowIds));

var self = this;
forEach(visibleRows, function (row) {
this._updateSelectedRowIds(row[this.props.uniqueIdentifier], newSelectedRowIds, newIsSelectAllChecked);
self._updateSelectedRowIds(row[self.props.uniqueIdentifier], newSelectedRowIds, newIsSelectAllChecked);
}, this);

this.setState({
Expand Down

0 comments on commit 1363b42

Please sign in to comment.