comparison app/controller/form/Ort.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
56 formPanel.setMessages(json.errors, json.warnings); 56 formPanel.setMessages(json.errors, json.warnings);
57 } 57 }
58 58
59 if(json.message){ 59 if(json.message){
60 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle') 60 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle')
61 +' '+json.message, 61 +' #'+json.message,
62 Lada.getApplication().bundle.getMsg(json.message)); 62 Lada.getApplication().bundle.getMsg(json.message));
63 } else {
64 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
65 Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
63 } 66 }
67 } else {
68 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
69 Lada.getApplication().bundle.getMsg('err.msg.response.body'));
64 } 70 }
65 } 71 }
66 }); 72 });
67 }, 73 },
68 74

http://lada.wald.intevation.org