diff app/view/form/Probe.js @ 1423:ee21d0e1b998

Pipe out more information in import report.
author Raimund Renkert <raimund.renkert@intevation.de>
date Thu, 06 Apr 2017 10:14:28 +0200
parents dc90e2997071
children
line wrap: on
line diff
--- a/app/view/form/Probe.js	Wed Apr 05 16:04:36 2017 +0200
+++ b/app/view/form/Probe.js	Thu Apr 06 10:14:28 2017 +0200
@@ -480,7 +480,11 @@
         var i18n = Lada.getApplication().bundle;
         if (warnings) {
             for (key in warnings) {
-                element = this.down('component[name=' + key + ']');
+                var tmp = key;
+                if (tmp.indexOf('#') > 0) {
+                    tmp = tmp.split('#')[0];
+                }
+                element = this.down('component[name=' + tmp + ']');
                 if (!element) {
                     continue;
                 }
@@ -494,7 +498,11 @@
         }
         if (errors) {
             for (key in errors) {
-                element = this.down('component[name=' + key + ']');
+                var tmp = key;
+                if (tmp.indexOf('#') > 0) {
+                    tmp = tmp.split('#')[0];
+                }
+                element = this.down('component[name=' + tmp + ']');
                 if (!element) {
                     continue;
                 }

http://lada.wald.intevation.org