changeset 1356:81b585645581

Remove dead code.
author Tom Gottfried <tom@intevation.de>
date Tue, 07 Feb 2017 17:18:13 +0100
parents d8db43ac9c12
children b96d98f0cb71
files app/controller/form/Messung.js app/controller/form/Probe.js
diffstat 2 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/app/controller/form/Messung.js	Tue Feb 07 16:50:16 2017 +0100
+++ b/app/controller/form/Messung.js	Tue Feb 07 17:18:13 2017 +0100
@@ -79,11 +79,6 @@
                 formPanel.getForm().loadRecord(formPanel.getForm().getRecord());
                 var json = response.request.scope.reader.jsonData;
                 if (json) {
-                    if (json.errors || json.warnings) {
-                        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.save.title')
                             + ' #' + json.message,
--- a/app/controller/form/Probe.js	Tue Feb 07 16:50:16 2017 +0100
+++ b/app/controller/form/Probe.js	Tue Feb 07 17:18:13 2017 +0100
@@ -118,10 +118,6 @@
                 formPanel.getForm().loadRecord(record);
                 var json = response.request.scope.reader.jsonData;
                 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.save.title')
                             +' #'+json.message,

http://lada.wald.intevation.org