Commit a1bb575304052c94bd693a7806ecc0e4533f9e22
1 parent
2b9ef0b0
table for petta
Showing
1 changed file
with
5 additions
and
1 deletions
controllets/data-table-controllet/data-table-controllet.html
| ... | ... | @@ -266,6 +266,9 @@ |
| 266 | 266 | window.addEventListener("resize", function() { that._resize(); }); |
| 267 | 267 | |
| 268 | 268 | this._translate(); |
| 269 | + | |
| 270 | + if(this.data.length > 0) | |
| 271 | + this.setData(this.data); | |
| 269 | 272 | }, |
| 270 | 273 | |
| 271 | 274 | _translate : function(){ |
| ... | ... | @@ -305,7 +308,8 @@ |
| 305 | 308 | |
| 306 | 309 | reset : function(){ |
| 307 | 310 | this.setData([]); |
| 308 | - this.filter = ""; | |
| 311 | + $(this.$.tbody).animate({ scrollTop: 0}, 0); | |
| 312 | +// this.filter = ""; | |
| 309 | 313 | }, |
| 310 | 314 | |
| 311 | 315 | _onPrevClick : function(){ | ... | ... |