summaryrefslogtreecommitdiffstats
path: root/plugins/slick.checkboxselectcolumn.js
diff options
context:
space:
mode:
authorMichael Leibman <michael.leibman@gmail.com>2012-09-08 14:44:17 -0700
committerMichael Leibman <michael.leibman@gmail.com>2012-09-08 14:44:17 -0700
commit312269c2bd6036a6f57c37e66ffb0c337f2ec2fa (patch)
tree7778d5889523ccda743f76af05cf80ff07ad2a97 /plugins/slick.checkboxselectcolumn.js
parent251161fc89df23901d3237fab9b13e4964a2c9d0 (diff)
downloadSlickGrid-312269c2bd6036a6f57c37e66ffb0c337f2ec2fa.zip
SlickGrid-312269c2bd6036a6f57c37e66ffb0c337f2ec2fa.tar.gz
SlickGrid-312269c2bd6036a6f57c37e66ffb0c337f2ec2fa.tar.bz2
Fixed #417 - checkbox select column handling for empty grids
Diffstat (limited to 'plugins/slick.checkboxselectcolumn.js')
-rw-r--r--plugins/slick.checkboxselectcolumn.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/slick.checkboxselectcolumn.js b/plugins/slick.checkboxselectcolumn.js
index db9a52c..83d8d50 100644
--- a/plugins/slick.checkboxselectcolumn.js
+++ b/plugins/slick.checkboxselectcolumn.js
@@ -51,7 +51,7 @@
_selectedRowsLookup = lookup;
_grid.render();
- if (selectedRows.length == _grid.getDataLength()) {
+ if (selectedRows.length && selectedRows.length == _grid.getDataLength()) {
_grid.updateColumnHeader(_options.columnId, "<input type='checkbox' checked='checked'>", _options.toolTip);
} else {
_grid.updateColumnHeader(_options.columnId, "<input type='checkbox'>", _options.toolTip);