comparison app/controller/form/Probe.js @ 628:e3cdc36cbcae

merged
author Dustin Demuth <dustin@intevation.de>
date Mon, 16 Mar 2015 12:40:06 +0100
parents e0b966b32163
children fdaabab6f4cc
comparison
equal deleted inserted replaced
627:6742ae5f35dc 628:e3cdc36cbcae
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