comparison app/view/form/Messung.js @ 965:a2c2039bb5d9

Disabled StatusGrid Edit when StatusEdit ist false, Load StatuswerteStore differently, removed a bunch of trailing commas
author Dustin Demuth <dustin@intevation.de>
date Thu, 12 Nov 2015 14:25:07 +0100
parents 6a6f2c6fe8ee
children abc2e9fe5069
comparison
equal deleted inserted replaced
964:5b86baa038bc 965:a2c2039bb5d9
126 submitValue: false, 126 submitValue: false,
127 isFormField: false, 127 isFormField: false,
128 preventMark: true, //Do not display error msg. 128 preventMark: true, //Do not display error msg.
129 validateValue: function() { 129 validateValue: function() {
130 return true; //this field is always valid 130 return true; //this field is always valid
131 }, 131 }
132 }, { 132 }, {
133 xtype: 'textfield', 133 xtype: 'textfield',
134 name: 'stufe', 134 name: 'stufe',
135 readOnly: true, 135 readOnly: true,
136 isFormField: false, 136 isFormField: false,
142 submitValue: false, 142 submitValue: false,
143 isFormField: false, 143 isFormField: false,
144 preventMark: true, //Do not display error msg. 144 preventMark: true, //Do not display error msg.
145 validateValue: function() { 145 validateValue: function() {
146 return true; //this field is always valid 146 return true; //this field is always valid
147 }, 147 }
148 }] 148 }]
149 }] 149 }]
150 }]; 150 }];
151 this.callParent(arguments); 151 this.callParent(arguments);
152 }, 152 },
207 var textfield = this.down('[name=status]'); 207 var textfield = this.down('[name=status]');
208 208
209 if (!swStore) { 209 if (!swStore) {
210 //Set the textfield asynchronously 210 //Set the textfield asynchronously
211 swStore = Ext.create('Lada.store.StatusWerte'); 211 swStore = Ext.create('Lada.store.StatusWerte');
212 console.log('loading sw store messungform');
212 swStore.load({ 213 swStore.load({
213 scope: this, 214 scope: this,
214 callback: function(records, operation, success) { 215 callback: function(records, operation, success) {
215 if (success) { 216 if (success) {
216 var item = swStore.getById(value); 217 var item = swStore.getById(value);
219 } 220 }
220 } 221 }
221 if (textfield) { 222 if (textfield) {
222 textfield.setRawValue(msg); 223 textfield.setRawValue(msg);
223 } 224 }
224 }, 225 }
225 }); 226 });
226 } 227 }
227 else { 228 else {
228 //Set the textfield 229 //Set the textfield
229 var item = swStore.getById(value); 230 var item = swStore.getById(value);
258 } 259 }
259 } 260 }
260 if (textfield) { 261 if (textfield) {
261 textfield.setRawValue(msg); 262 textfield.setRawValue(msg);
262 } 263 }
263 }, 264 }
264 }); 265 });
265 } 266 }
266 else { 267 else {
267 //Set the value. 268 //Set the value.
268 var item = ssStore.getById(value); 269 var item = ssStore.getById(value);

http://lada.wald.intevation.org