comparison app/controller/form/Location.js @ 704:2d454bfef426

Further Failure Messages
author Dustin Demuth <dustin@intevation.de>
date Fri, 27 Mar 2015 11:22:35 +0100
parents f0bc5387abcc
children 7f11b75e0188
comparison
equal deleted inserted replaced
703:9ab7b1eed9f8 704:2d454bfef426
64 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){ 64 if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){
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('err.msg.save.title')
70 +' #'+json.message, 70 +' #'+json.message,
71 Lada.getApplication().bundle.getMsg(json.message)); 71 Lada.getApplication().bundle.getMsg(json.message));
72 } else { 72 } else {
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 Lada.getApplication().bundle.getMsg('err.msg.generic.body')); 74 Lada.getApplication().bundle.getMsg('err.msg.generic.body'));

http://lada.wald.intevation.org