comparison app/controller/form/Probe.js @ 693:817524db4017

Readonly was missing
author Dustin Demuth <dustin@intevation.de>
date Thu, 26 Mar 2015 15:54:50 +0100
parents 14ac75f80ba1
children f0bc5387abcc
comparison
equal deleted inserted replaced
692:c31644b3d445 693:817524db4017
56 var rec = formPanel.getForm().getRecord(); 56 var rec = formPanel.getForm().getRecord();
57 rec.dirty = false; 57 rec.dirty = false;
58 formPanel.getForm().loadRecord(rec); 58 formPanel.getForm().loadRecord(rec);
59 var json = response.request.scope.reader.jsonData; 59 var json = response.request.scope.reader.jsonData;
60 if (json) { 60 if (json) {
61 formPanel.setMessages(json.errors, json.warnings); 61 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){
62 formPanel.setMessages(json.errors, json.warnings);
63 }
64
65 if(json.message){
66 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle')
67 +' '+json.message,
68 Lada.getApplication().bundle.getMsg(json.message));
69 }
62 } 70 }
63 } 71 }
64 }); 72 });
65 console.log('save');
66 }, 73 },
67 74
68 discard: function(button) { 75 discard: function(button) {
69 var formPanel = button.up('form'); 76 var formPanel = button.up('form');
70 formPanel.getForm().loadRecord(formPanel.getForm().getRecord()); 77 formPanel.getForm().loadRecord(formPanel.getForm().getRecord());

http://lada.wald.intevation.org