Mercurial > lada > lada-client
comparison app/controller/grid/Probenehmer.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 | e79403c3482e |
comparison
equal
deleted
inserted
replaced
1058:ce1928e6e828 | 1059:fa422d69940c |
---|---|
139 return; | 139 return; |
140 } | 140 } |
141 var grid = Ext.ComponentQuery.query('probenehmergrid')[0]; | 141 var grid = Ext.ComponentQuery.query('probenehmergrid')[0]; |
142 if (!record) { | 142 if (!record) { |
143 grid.down('button[action=delete]').disable(); | 143 grid.down('button[action=delete]').disable(); |
144 return; | |
144 } | 145 } |
145 if (record.get('readonly') || | 146 if (record.get('readonly') || |
146 rowModel.selected.items.length === 0) { | 147 rowModel.selected.items.length === 0) { |
147 grid.down('button[action=delete]').disable(); | 148 grid.down('button[action=delete]').disable(); |
148 } | 149 } |