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

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

http://lada.wald.intevation.org