comparison app/view/grid/DatensatzErzeuger.js @ 1074:ca204e91012f

Enable add-Button only if the user is authorized.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 07 Apr 2016 14:02:51 +0200
parents 070255c0db28
children d23427c68285
comparison
equal deleted inserted replaced
1073:e79403c3482e 1074:ca204e91012f
149 } 149 }
150 150
151 if (store) { 151 if (store) {
152 this.removeDocked(Ext.getCmp('ptbar'), true); 152 this.removeDocked(Ext.getCmp('ptbar'), true);
153 this.reconfigure(store); 153 this.reconfigure(store);
154 this.down('button[action=add]').enable();
155 this.addDocked([{ 154 this.addDocked([{
156 xtype: 'pagingtoolbar', 155 xtype: 'pagingtoolbar',
157 id: 'ptbar', 156 id: 'ptbar',
158 dock: 'bottom', 157 dock: 'bottom',
159 store: store, 158 store: store,

http://lada.wald.intevation.org