Author: konstantin.mishin
Date: 2008-07-30 08:00:41 -0400 (Wed, 30 Jul 2008)
New Revision: 9825
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js
Log:
RF-4038
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-07-30
11:45:23 UTC (rev 9824)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/GridBody.js 2008-07-30
12:00:41 UTC (rev 9825)
@@ -722,9 +722,16 @@
}
},
+ updateScrollState: function() {
+ var value = ($(this.gridId + ":si")).value
+ if (value !='' && this.currRange.end >= Number(value)) {
+ this.restoreScrollState();
+ }
+ },
+
restoreScrollState: function() {
this.scrollInput = $(this.gridId + ":si");
- var value = this.scrollInput.value
+ var value = this.scrollInput.value;
if(value !=''){
var values = value.split(',');
this.currentPos = values[0];
Modified:
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js
===================================================================
---
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js 2008-07-30
11:45:23 UTC (rev 9824)
+++
trunk/ui/scrollableDataTable/src/main/javascript/ClientUI/controls/grid/ScrollableGrid.js 2008-07-30
12:00:41 UTC (rev 9825)
@@ -56,7 +56,7 @@
}]);
this.updateLayout();
- this.getBody().restoreScrollState();
+ this.getBody().updateScrollState();
window.loadingEndTime = (new Date()).getTime();
// TODO: remove this time statistic logging