comparison app/controller/grid/Messung.js @ 704:2d454bfef426

Further Failure Messages
author Dustin Demuth <dustin@intevation.de>
date Fri, 27 Mar 2015 11:22:35 +0100
parents e88381fb3bdb
children cc9107d9be17
comparison
equal deleted inserted replaced
703:9ab7b1eed9f8 704:2d454bfef426
63 selection.destroy({ 63 selection.destroy({
64 success: function() { 64 success: function() {
65 button.up('window').initData(); 65 button.up('window').initData();
66 }, 66 },
67 failure: function() { 67 failure: function() {
68 var json = response.request.scope.reader.jsonData;
69 if (json) {
70 if (json.message){
71 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.delete.title')
72 +' #'+json.message,
73 Lada.getApplication().bundle.getMsg(json.message));
74 } else {
75 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.delete.title'),
76 Lada.getApplication().bundle.getMsg('err.msg.generic.body'));
77 }
78 } else {
79 Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.delete.title'),
80 Lada.getApplication().bundle.getMsg('err.msg.response.body'));
81 }
68 } 82 }
69 }); 83 });
70 } 84 }
71 } 85 }
72 ); 86 );

http://lada.wald.intevation.org