comparison 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
comparison
equal deleted inserted replaced
75:4a82e28dfcc4 76:eb8a7d3cca89
52 win.close(); 52 win.close();
53 }, 53 },
54 createFailure: function(form, record, operation) { 54 createFailure: function(form, record, operation) {
55 Ext.MessageBox.show({ 55 Ext.MessageBox.show({
56 title: 'Fehler beim Speichern', 56 title: 'Fehler beim Speichern',
57 msg: 'Es gab Fehler beim Anlegen der Probe', 57 msg: form.message,
58 icon: Ext.MessageBox.ERROR, 58 icon: Ext.MessageBox.ERROR,
59 buttons: Ext.Msg.OK 59 buttons: Ext.Msg.OK
60 }); 60 });
61 }, 61 },
62 editSuccess: function(form, record, operation) { 62 editSuccess: function(form, record, operation) {
64 win.close(); 64 win.close();
65 }, 65 },
66 editFailure: function(form, record, operation) { 66 editFailure: function(form, record, operation) {
67 Ext.MessageBox.show({ 67 Ext.MessageBox.show({
68 title: 'Fehler beim Speichern', 68 title: 'Fehler beim Speichern',
69 msg: 'Es gab Fehler beim Speichern der Probe', 69 msg: form.message,
70 icon: Ext.MessageBox.ERROR, 70 icon: Ext.MessageBox.ERROR,
71 buttons: Ext.Msg.OK 71 buttons: Ext.Msg.OK
72 }); 72 });
73 } 73 }
74 }); 74 });

http://lada.wald.intevation.org