comparison app/controller/form/Messung.js @ 695:d6ef146e1a9f

Added simple handling for Failure-Messages
author Dustin Demuth <dustin@intevation.de>
date Thu, 26 Mar 2015 16:24:13 +0100
parents 817524db4017
children f0bc5387abcc
comparison
equal deleted inserted replaced
694:a0df1a8dff24 695:d6ef146e1a9f
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'), Lada.getApplication().bundle.getMsg(json.message)); 65 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle')
66 +' '+json.message,
67 Lada.getApplication().bundle.getMsg(json.message));
66 } 68 }
67 } 69 }
68 } 70 }
69 }); 71 });
70 }, 72 },

http://lada.wald.intevation.org