Permalink
Browse files

use sectionRowIndex

  • Loading branch information...
1 parent 6b69da4 commit 29acd0cdae434310fb9021abdf2d4d49b78ca91d Kjel Delaey committed Dec 1, 2010
Showing with 5 additions and 15 deletions.
  1. +4 −4 jquery.tableSelect.js
  2. +1 −11 jquery.tableSelect.min.js
View
@@ -105,7 +105,7 @@
},
handleKeyDown: function(event, row) {
- var rowIndex = row.rowIndex-1;
+ var rowIndex = row.sectionRowIndex;
if(event.shiftKey) {
if(typeof(this.lastActiveRow) == "undefined") this.focusRow(rowIndex);
this.lockedRow = this.lastActiveRow;
@@ -123,7 +123,7 @@
},
handleSingleSelect: function(row) {
- var rowIndex = row.rowIndex-1;
+ var rowIndex = row.sectionRowIndex;
if(this.isSelected(row)) {
this.deselectRow(rowIndex);
}
@@ -176,14 +176,14 @@
if(this.options.multiSelect) {
this.clearSelections();
$(this.rows).each(function() {
- this.parentThis.selectRow(this.rowIndex-1, true);
+ this.parentThis.selectRow(this.sectionRowIndex, true);
});
}
},
clearSelections: function() {
$(this.rows).each(function() {
- this.parentThis.deselectRow(this.rowIndex-1);
+ this.parentThis.deselectRow(this.sectionRowIndex);
});
},
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

0 comments on commit 29acd0c

Please sign in to comment.