[Lada-commits] [PATCH] Display of probe forms failed due to getEl() returning undefined

Wald Commits scm-commit at wald.intevation.org
Wed Sep 28 15:25:04 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1475068953 -7200
# Node ID 26019a2273f60bc7d80fe2e6ffcb1c562155c7f2
# Parent  e9efd2edb50f8cfd2c3b59b019bb22114ad7b90b
Display of probe forms failed due to getEl() returning undefined

diff -r e9efd2edb50f -r 26019a2273f6 app/view/widget/base/FieldSet.js
--- a/app/view/widget/base/FieldSet.js	Fri Sep 23 17:20:22 2016 +0200
+++ b/app/view/widget/base/FieldSet.js	Wed Sep 28 15:22:33 2016 +0200
@@ -73,6 +73,8 @@
 
     clearMessages: function() {
         this.setTitle(this.plainTitle);
-        this.getEl().dom.style['border-color'] = this.origColor;
+        if (this.getEl()) {
+            this.getEl().dom.style['border-color'] = this.origColor;
+        }
     }
 });


More information about the Lada-commits mailing list