Mercurial > lada > lada-client
comparison app/view/grid/Messung.js @ 1033:e4b6b6c5fb89
Use 'owner' attribute to set messung grid and button RO status.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 18 Feb 2016 11:19:25 +0100 |
parents | fa04558f35cd |
children | 4d4de99bbe53 |
comparison
equal
deleted
inserted
replaced
1032:fa04558f35cd | 1033:e4b6b6c5fb89 |
---|---|
271 * Activate the Remove Button | 271 * Activate the Remove Button |
272 */ | 272 */ |
273 activateRemoveButton: function(selection, record) { | 273 activateRemoveButton: function(selection, record) { |
274 var grid = this; | 274 var grid = this; |
275 //only enable the remove buttone, when the grid is editable. | 275 //only enable the remove buttone, when the grid is editable. |
276 if (! grid.readOnly) { | 276 if (! grid.readOnly && |
277 record.get('statusWert') === 0 && | |
278 record.get('owner')) { | |
277 grid.down('button[action=delete]').enable(); | 279 grid.down('button[action=delete]').enable(); |
278 } | 280 } |
279 }, | 281 }, |
280 /** | 282 /** |
281 * Activate the Remove Button | 283 * Activate the Remove Button |