diff 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
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Fri Mar 27 08:43:37 2015 +0100
+++ b/app/controller/form/Messung.js	Fri Mar 27 09:38:13 2015 +0100
@@ -62,10 +62,16 @@
                     }
 
                     if(json.message){
-                        Ext.Msg.alert(Lada.getApplication().bundle.getMsg('errmsgtitle')
-                            +' '+json.message,
+                        Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title')
+                            +' #'+json.message,
                             Lada.getApplication().bundle.getMsg(json.message));
+                    } else {
+                         Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
+                            Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
                     }
+                } else {
+                    Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.save.title'),
+                        Lada.getApplication().bundle.getMsg('err.msg.response.body'));
                 }
             }
         });

http://lada.wald.intevation.org