diff app/view/widget/DynamicGrid.js @ 1051:981339d774b8

merged stammdatengrids to default.
author Raimund Renkert <raimund.renkert@intevation.de>
date Tue, 01 Mar 2016 14:12:39 +0100
parents 94a6b5415d73 1df6b6210b42
children 2a5d42045c63
line wrap: on
line diff
--- a/app/view/widget/DynamicGrid.js	Mon Feb 29 15:10:17 2016 +0100
+++ b/app/view/widget/DynamicGrid.js	Tue Mar 01 14:12:39 2016 +0100
@@ -35,11 +35,14 @@
     setStore: function(store){
         var i18n = Lada.getApplication().bundle;
 
-        this.removeDocked(Ext.getCmp('ptbar'), true);
         this.reconfigure(store);
+        var ptbar = this.down('pagingtoolbar');
+        if (ptbar) {
+            this.removeDocked(ptbar);
+        }
+
         this.addDocked([{
             xtype: 'pagingtoolbar',
-            id: 'ptbar',
             dock: 'bottom',
             store: store,
             displayInfo: true

http://lada.wald.intevation.org