Jack,
I have a small fix for the PagingToolbar. There was a problem using the "go to end" button when there were no rows "left over" on the final page. It would just go to the second page under these circumstances.
You will find the patch in SVN format below.
Regards,
Gordon
I have a small fix for the PagingToolbar. There was a problem using the "go to end" button when there were no rows "left over" on the final page. It would just go to the second page under these circumstances.
You will find the patch in SVN format below.
Regards,
Gordon
Index: ext/ext-all-debug.js
===================================================================
--- ext/ext-all-debug.js (revision 11210)
+++ ext/ext-all-debug.js (working copy)
@@ -12937,7 +12937,8 @@
case "last":
var total = ds.getTotalCount();
var extra = total % this.pageSize;
- var lastStart = total - (extra || total-this.pageSize);
+// var lastStart = total - (extra || total-this.pageSize); // bug where extra==0
+ var lastStart = extra ? (total - extra) : total-this.pageSize;
ds.load({params:{start: lastStart, limit: this.pageSize}});
break;
case "refresh":

|
#2
|
|
Thanks Gordon. This is in Rev 5.
![]() |
此修复针对PagingToolbar组件中gotoend按钮的问题,在没有剩余行的最后一页时,按钮会错误地跳转到第二页。修复通过调整计算最后一页开始位置的方法解决了这一问题。
1万+

被折叠的 条评论
为什么被折叠?



