comparison app/controller/form/Messung.js @ 701:f0bc5387abcc

Added failure - Messages
author Dustin Demuth <dustin@intevation.de>
date Fri, 27 Mar 2015 09:38:13 +0100
parents d6ef146e1a9f
children f204f30b824a
comparison
equal deleted inserted replaced
700:1e76aec72815 701:f0bc5387abcc
60 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0) { 60 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0) {
61 formPanel.setMessages(json.errors, json.warnings); 61 formPanel.setMessages(json.errors, json.warnings);
62 } 62 }
63 63
64 if(json.message){ 64 if(json.message){
65 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle') 65 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title')
66 +' '+json.message, 66 +' #'+json.message,
67 Lada.getApplication().bundle.getMsg(json.message)); 67 Lada.getApplication().bundle.getMsg(json.message));
68 } else {
69 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
70 Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
68 } 71 }
72 } else {
73 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
74 Lada.getApplication().bundle.getMsg('err.msg.response.body'));
69 } 75 }
70 } 76 }
71 }); 77 });
72 }, 78 },
73 79

http://lada.wald.intevation.org