diff app/controller/Proben.js @ 76:eb8a7d3cca89

Use translated message from server in error dialog
author Torsten Irländer <torsten.irlaender@intevation.de>
date Wed, 05 Jun 2013 18:05:00 +0200
parents db26aeebe521
children eb40b74f871a
line wrap: on
line diff
--- a/app/controller/Proben.js	Wed Jun 05 18:04:39 2013 +0200
+++ b/app/controller/Proben.js	Wed Jun 05 18:05:00 2013 +0200
@@ -54,7 +54,7 @@
     createFailure: function(form, record, operation) {
         Ext.MessageBox.show({
             title: 'Fehler beim Speichern',
-            msg: 'Es gab Fehler beim Anlegen der Probe',
+            msg: form.message,
             icon: Ext.MessageBox.ERROR,
             buttons: Ext.Msg.OK
         });
@@ -66,7 +66,7 @@
     editFailure: function(form, record, operation) {
         Ext.MessageBox.show({
             title: 'Fehler beim Speichern',
-            msg: 'Es gab Fehler beim Speichern der Probe',
+            msg: form.message,
             icon: Ext.MessageBox.ERROR,
             buttons: Ext.Msg.OK
         });

http://lada.wald.intevation.org