Mercurial > lada > lada-client
comparison app/controller/form/Location.js @ 701:f0bc5387abcc
Added failure - Messages
author | Dustin Demuth <dustin@intevation.de> |
---|---|
date | Fri, 27 Mar 2015 09:38:13 +0100 |
parents | d6ef146e1a9f |
children | 2d454bfef426 |
comparison
equal
deleted
inserted
replaced
700:1e76aec72815 | 701:f0bc5387abcc |
---|---|
65 formPanel.setMessages(json.errors, json.warnings); | 65 formPanel.setMessages(json.errors, json.warnings); |
66 } | 66 } |
67 | 67 |
68 if(json.message){ | 68 if(json.message){ |
69 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle') | 69 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle') |
70 +' '+json.message, | 70 +' #'+json.message, |
71 Lada.getApplication().bundle.getMsg(json.message)); | 71 Lada.getApplication().bundle.getMsg(json.message)); |
72 } else { | |
73 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), | |
74 Lada.getApplication().bundle.getMsg('err.msg.generic.body')); | |
72 } | 75 } |
76 } else { | |
77 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'), | |
78 Lada.getApplication().bundle.getMsg('err.msg.response.body')); | |
73 } | 79 } |
74 } | 80 } |
75 }); | 81 }); |
76 }, | 82 }, |
77 | 83 |