changeset 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 4a82e28dfcc4
children c846a2e37289
files app/controller/Proben.js
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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