comparison app/controller/grid/Datensatzerzeuger.js @ 1059:fa422d69940c

Fixed button toggle on cancel edit.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 09 Mar 2016 15:38:11 +0100
parents 77e22ad5cc84
children fe5fb960da9d
comparison
equal deleted inserted replaced
1058:ce1928e6e828 1059:fa422d69940c
140 return; 140 return;
141 } 141 }
142 var grid = Ext.ComponentQuery.query('datensatzerzeugergrid')[0]; 142 var grid = Ext.ComponentQuery.query('datensatzerzeugergrid')[0];
143 if (!record) { 143 if (!record) {
144 grid.down('button[action=delete]').disable(); 144 grid.down('button[action=delete]').disable();
145 return;
145 } 146 }
146 if (record.get('readonly') || 147 if (record.get('readonly') ||
147 rowModel.selected.items.length === 0) { 148 rowModel.selected.items.length === 0) {
148 grid.down('button[action=delete]').disable(); 149 grid.down('button[action=delete]').disable();
149 } 150 }

http://lada.wald.intevation.org