comparison app/view/widget/DynamicGrid.js @ 1010:94a6b5415d73

Fixed edit status in grids.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 21 Jan 2016 08:59:13 +0100
parents 52b02b0225e8
children 981339d774b8
comparison
equal deleted inserted replaced
1009:afb355cc7fb3 1010:94a6b5415d73
84 dataIndex: 'readonly', 84 dataIndex: 'readonly',
85 sortable: false, 85 sortable: false,
86 tooltip: 'Probe öffnen', 86 tooltip: 'Probe öffnen',
87 width: 30, 87 width: 30,
88 getClass: function (val, meta, rec) { 88 getClass: function (val, meta, rec) {
89 if ( rec.get('readonly') === false || rec.get('owner') ) { 89 if ( rec.get('readonly') === false && rec.get('owner') === true) {
90 return 'edit'; 90 return 'edit';
91 } 91 }
92 else { 92 else {
93 return 'noedit'; 93 return 'noedit';
94 } 94 }

http://lada.wald.intevation.org