Mercurial > lada > lada-client
comparison app/controller/form/Messung.js @ 712:baef70abfe71
Cosmetics.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Wed, 08 Apr 2015 10:52:15 +0200 |
parents | f204f30b824a |
children | 2e478b3a587a |
comparison
equal
deleted
inserted
replaced
711:af16a257d5f6 | 712:baef70abfe71 |
---|---|
63 button.up('toolbar').down('button[action=discard]') | 63 button.up('toolbar').down('button[action=discard]') |
64 .setDisabled(true); | 64 .setDisabled(true); |
65 formPanel.getForm().loadRecord(formPanel.getForm().getRecord()); | 65 formPanel.getForm().loadRecord(formPanel.getForm().getRecord()); |
66 var json = response.request.scope.reader.jsonData; | 66 var json = response.request.scope.reader.jsonData; |
67 if (json) { | 67 if (json) { |
68 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0) { | 68 if (json.errors.totalCount > 0 || json.warnings.totalCount > 0) { |
69 formPanel.setMessages(json.errors, json.warnings); | 69 formPanel.setMessages(json.errors, json.warnings); |
70 } | 70 } |
71 | 71 |
72 if(json.message){ | 72 if (json.message) { |
73 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') | 73 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title') |
74 +' #'+json.message, | 74 + ' #' + json.message, |
75 Lada.getApplication().bundle.getMsg(json.message)); | 75 Lada.getApplication().bundle.getMsg(json.message)); |
76 } else { | 76 } |
77 else { | |
77 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), | 78 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), |
78 Lada.getApplication().bundle.getMsg('err.msg.generic.body')); | 79 Lada.getApplication().bundle.getMsg('err.msg.generic.body')); |
79 } | 80 } |
80 } else { | 81 } |
82 else { | |
81 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), | 83 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), |
82 Lada.getApplication().bundle.getMsg('err.msg.response.body')); | 84 Lada.getApplication().bundle.getMsg('err.msg.response.body')); |
83 } | 85 } |
84 } | 86 } |
85 }); | 87 }); |