projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
010ffdb
)
Roo/bootstrap/PagingToolbar.js
author
edward
<edward@roojs.com>
Tue, 8 Mar 2016 04:17:15 +0000
(12:17 +0800)
committer
edward
<edward@roojs.com>
Tue, 8 Mar 2016 04:17:15 +0000
(12:17 +0800)
Roo/bootstrap/PagingToolbar.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/PagingToolbar.js
b/Roo/bootstrap/PagingToolbar.js
index
bcef7e4
..
a23b010
100644
(file)
--- a/
Roo/bootstrap/PagingToolbar.js
+++ b/
Roo/bootstrap/PagingToolbar.js
@@
-21,14
+21,15
@@
Roo.bootstrap.PagingToolbar = function(config)
{
// old args format still supported... - xtype is prefered..
// created from xtype...
- if (this.store) {
+
+ var ds = config.dataSource;
+
+ if (this.store && !ds) {
this.store= Roo.factory(this.store, Roo.data);
-
this.
ds = this.store;
-
this.
ds.xmodule = this.xmodule || false;
+ ds = this.store;
+ ds.xmodule = this.xmodule || false;
}
- var ds = config.dataSource;
- Roo.log(config);
this.toolbarItems = [];
if (config.items) {
this.toolbarItems = config.items;