Author: konstantin.mishin
Date: 2008-04-30 08:45:47 -0400 (Wed, 30 Apr 2008)
New Revision: 8374
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
Log:
RF-3038
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2008-04-30
11:59:33 UTC (rev 8373)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2008-04-30
12:45:47 UTC (rev 8374)
@@ -412,7 +412,7 @@
}
this.startRow = this.shiftRow;
if (((this.startRow <= rowIndex) && (this.firstIndex <= this.startRow ||
rowIndex < this.firstIndex))
- || (this.startRow > rowIndex && this.firstIndex < this.startRow
&& rowIndex <= this.firstIndex)) {
+ || (this.startRow > rowIndex && this.firstIndex < this.startRow
&& rowIndex < this.firstIndex)) {
this.endRow = rowIndex;
} else {
this.endRow = this.startRow;
@@ -464,10 +464,10 @@
setSelection: function(range) {
var i = range[0];
range[1] = (range[1] + 1) % this.rowCount;
- while (i != range[1]) {
+ do {
this.addRowToSelection(i);
i = (i + 1) % this.rowCount;
- }
+ } while (i != range[1]);
while (i != range[0]) {
this.removeRowFromSelection(i);
i = (i + 1) % this.rowCount;
Show replies by date