comparison app/view/window/DeleteProbe.js @ 861:99c5dd8e9b0f

merged heads
author Dustin Demuth <dustin@intevation.de>
date Fri, 10 Jul 2015 18:18:53 +0200
parents 2c686025934a
children def27cdd0dfa
comparison
equal deleted inserted replaced
860:03f39ddae596 861:99c5dd8e9b0f
53 headers: { 53 headers: {
54 'X-OPENID-PARAMS': Lada.openIDParams 54 'X-OPENID-PARAMS': Lada.openIDParams
55 }, 55 },
56 success: function(response) { 56 success: function(response) {
57 var json = Ext.JSON.decode(response.responseText); 57 var json = Ext.JSON.decode(response.responseText);
58 Ext.Msg.show({ 58 if (json.success && json.message === '200') {
59 title: i18n.getMsg('success'), 59 Ext.Msg.show({
60 autoScroll: true, 60 title: i18n.getMsg('success'),
61 msg: me.evalResponse(json), 61 autoScroll: true,
62 buttons: Ext.Msg.OK, 62 msg: 'Probe gelöscht!',
63 }); 63 buttons: Ext.Msg.OK
64 });
65 }
66 else {
67 Ext.Msg.show({
68 title: 'Fehler!',
69 msg: 'Ein Fehler ist aufgetreten, ist die Probe nicht leer?',
70 buttons: Ext.Msg.OK
71 });
72 }
73 me.close();
64 }, 74 },
65 failure: function(response) { 75 failure: function(response) {
66 var json = null; 76 var json = null;
67 try { 77 try {
68 json = Ext.JSON.decode(response.responseText); 78 json = Ext.JSON.decode(response.responseText);

http://lada.wald.intevation.org