Author: konstantin.mishin
Date: 2008-03-26 10:55:32 -0400 (Wed, 26 Mar 2008)
New Revision: 7262
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
Log:
RF-1876
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2008-03-26
14:40:45 UTC (rev 7261)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/Selection.js 2008-03-26
14:55:32 UTC (rev 7262)
@@ -247,12 +247,11 @@
restoreState: function() {
this.selectionFlag = null;
var selStrAr = $(this.inputElement).value.split(";");
- if(selStrAr.length != 0) {
- var activeRowStr = selStrAr[selStrAr.length - 1];
- if(activeRowStr.indexOf(";") == -1) {
- this.setActiveRow(activeRowStr);
- selStrAr.pop();
- }
+ var activeRow = NaN;
+ while (selStrAr.length != 0 && selStrAr[selStrAr.length -
1].indexOf(",") == -1 &&
+ isNaN(activeRow = Number(selStrAr.pop())));
+ if (!isNaN(activeRow)) {
+ this.setActiveRow(activeRow);
}
this.selection.initRanges(selStrAr);
// this.firstIndex = Number($(this.prefix +
":f").rows[0].id.split(this.prefix)[1].split(":")[2]);;
Show replies by date