Mercurial > lada > lada-client
diff 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 |
line wrap: on
line diff
--- a/app/controller/form/Probe.js Thu Mar 26 14:13:47 2015 +0100 +++ b/app/controller/form/Probe.js Thu Mar 26 15:54:50 2015 +0100 @@ -58,11 +58,18 @@ formPanel.getForm().loadRecord(rec); var json = response.request.scope.reader.jsonData; if (json) { - formPanel.setMessages(json.errors, json.warnings); + if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){ + formPanel.setMessages(json.errors, json.warnings); + } + + if(json.message){ + Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle') + +' '+json.message, + Lada.getApplication().bundle.getMsg(json.message)); + } } } }); - console.log('save'); }, discard: function(button) {