comparison app/view/widget/DynamicGrid.js @ 1005:52b02b0225e8 stammdatengrids

Made changes to the edit button
author Dustin Demuth <dustin@intevation.de>
date Wed, 20 Jan 2016 17:23:39 +0100
parents 7867752a0d58
children 94a6b5415d73 1df6b6210b42
comparison
equal deleted inserted replaced
1004:9ac03f461ab4 1005:52b02b0225e8
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 return rec.get('readonly') === false ? "edit" : "noedit"; 89 if ( rec.get('readonly') === false || rec.get('owner') ) {
90 return 'edit';
91 }
92 else {
93 return 'noedit';
94 }
90 }, 95 },
91 handler: function(grid, rowIndex, colIndex) { 96 handler: function(grid, rowIndex, colIndex) {
92 var rec = grid.getStore().getAt(rowIndex); 97 var rec = grid.getStore().getAt(rowIndex);
93 grid.fireEvent('itemdblclick', grid, rec); 98 grid.fireEvent('itemdblclick', grid, rec);
94 } 99 }

http://lada.wald.intevation.org