comparison app/controller/form/Messung.js @ 622:ee92e352be20

Open messung create window on button click.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 16 Mar 2015 12:11:34 +0100
parents 8a156a7fbe67
children fdaabab6f4cc
comparison
equal deleted inserted replaced
621:c3c8a3be5117 622:ee92e352be20
30 formPanel.getForm().getRecord().set(key, data[key]); 30 formPanel.getForm().getRecord().set(key, data[key]);
31 } 31 }
32 formPanel.getForm().getRecord().save({ 32 formPanel.getForm().getRecord().save({
33 success: function(record, response) { 33 success: function(record, response) {
34 var json = Ext.decode(response.response.responseText); 34 var json = Ext.decode(response.response.responseText);
35 if (response.action !== 'create' && 35 if (json) {
36 json &&
37 json.success) {
38 button.setDisabled(true); 36 button.setDisabled(true);
39 button.up('toolbar').down('button[action=discard]') 37 button.up('toolbar').down('button[action=discard]')
40 .setDisabled(true); 38 .setDisabled(true);
41 formPanel.clearMessages(); 39 formPanel.clearMessages();
42 formPanel.setRecord(record); 40 formPanel.setRecord(record);

http://lada.wald.intevation.org