comparison app/controller/grid/Messmethode.js @ 1419:01f083db45b7

Use readonly flag to set edit status of UI
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 29 Mar 2017 14:27:20 +0200
parents 24b5684d74d7
children
comparison
equal deleted inserted replaced
1418:3ecf993c250a 1419:01f083db45b7
141 141
142 var mmtmessgroessenstore = this.buildNuklideStore(nuklide); 142 var mmtmessgroessenstore = this.buildNuklideStore(nuklide);
143 //Set Store 143 //Set Store
144 ngrid.setData(mmtmessgroessenstore); 144 ngrid.setData(mmtmessgroessenstore);
145 145
146 //Enable Editing 146 //Enable Editing depending on the readonly state of the messprogramm.
147 ngrid.setReadOnly(false); 147 ngrid.setReadOnly(row.view.up('window').record.get('readonly'));
148 }, 148 },
149 149
150 /** 150 /**
151 * Clear the nuklideGrid when a MMT Row is deselected 151 * Clear the nuklideGrid when a MMT Row is deselected
152 */ 152 */

http://lada.wald.intevation.org