projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4905f45
)
Roo/PagingToolbar.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 14 Jan 2011 07:17:32 +0000
(15:17 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 14 Jan 2011 07:17:32 +0000
(15:17 +0800)
Roo/PagingToolbar.js
patch
|
blob
|
history
diff --git
a/Roo/PagingToolbar.js
b/Roo/PagingToolbar.js
index
c20721b
..
55b8cc3
100644
(file)
--- a/
Roo/PagingToolbar.js
+++ b/
Roo/PagingToolbar.js
@@
-26,13
+26,22
@@
Roo.PagingToolbar = function(el, ds, config)
ds = el.dataSource;
el = config.container;
}
-
+ var items = [];
+ if (this.items) {
+ items = this.items;
+ this.items = [];
+ }
Roo.PagingToolbar.superclass.constructor.call(this, el, null, config);
this.ds = ds;
this.cursor = 0;
this.renderButtons(this.el);
this.bind(ds);
+ var _this = this;
+ Roo.each(items, function(e) {
+ _this.add(Roo.factory(e));
+ });
+
};
Roo.extend(Roo.PagingToolbar, Roo.Toolbar, {