Mercurial > lada > lada-client
comparison app/view/grid/Messung.js @ 1410:0e081a9badbc release-2.5
Use 'statusKombi'-attribute to set delete button status.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 24 Mar 2017 12:03:44 +0100 |
parents | 9a428be3907b |
children |
comparison
equal
deleted
inserted
replaced
1404:9712170c5150 | 1410:0e081a9badbc |
---|---|
308 */ | 308 */ |
309 activateRemoveButton: function(selection, record) { | 309 activateRemoveButton: function(selection, record) { |
310 var grid = this; | 310 var grid = this; |
311 //only enable the remove buttone, when the grid is editable. | 311 //only enable the remove buttone, when the grid is editable. |
312 if (! grid.readOnly && | 312 if (! grid.readOnly && |
313 record.get('statusWert') === 0 && | 313 record.get('statusKombi') === 1 && |
314 record.get('owner')) { | 314 record.get('owner')) { |
315 grid.down('button[action=delete]').enable(); | 315 grid.down('button[action=delete]').enable(); |
316 } | 316 } |
317 }, | 317 }, |
318 /** | 318 /** |