Mercurial > lada > lada-client
changeset 1256:f961f94495c8
Remove erroneous error handling.
This code seems to expect any LADA validation results coming along
with an HTTP status not indicating success, which should not happen.
Instead, Ext.JSON.decode() failed because of the non-JSON responseText
resulting from other errors.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Fri, 18 Nov 2016 19:46:15 +0100 |
parents | f3945506a4c5 |
children | 9a428be3907b |
files | app/controller/grid/ProbeList.js |
diffstat | 1 files changed, 1 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/app/controller/grid/ProbeList.js Fri Nov 18 16:41:34 2016 +0100 +++ b/app/controller/grid/ProbeList.js Fri Nov 18 19:46:15 2016 +0100 @@ -136,22 +136,8 @@ 'Für ein erneutes Login muss die Anwendung neu geladen werden.<br/>' + 'Alle ungesicherten Daten gehen dabei verloren.<br/>' + 'Soll die Anwendung jetzt neu geladen werden?', this.reload); - } - // further error handling - var json = Ext.JSON.decode(response.responseText); - if (json) { - if(json.errors.totalCount > 0 || json.warnings.totalCount > 0){ - formPanel.setMessages(json.errors, json.warnings); - } - if(json.message){ - Ext.Msg.alert(Lada.getApplication().bundle.getMsg('err.msg.generic.title') - +' #'+json.message, - Lada.getApplication().bundle.getMsg(json.message)); - } else { - Ext.Msg.alert(i18n.getMsg('err.msg.generic.title'), - i18n.getMsg('err.msg.laf.filecreatefailed')); - } } else { + // further error handling Ext.Msg.alert(i18n.getMsg('err.msg.generic.title'), i18n.getMsg('err.msg.laf.filecreatefailed')); }