diff app/view/widget/base/FieldSet.js @ 1196:47991f0d7837

Clear messages regardless of whether title is an empty string.
author Tom Gottfried <tom@intevation.de>
date Tue, 20 Sep 2016 18:14:38 +0200
parents 3e078af76b58
children 26019a2273f6
line wrap: on
line diff
--- a/app/view/widget/base/FieldSet.js	Tue Sep 13 12:49:44 2016 +0200
+++ b/app/view/widget/base/FieldSet.js	Tue Sep 20 18:14:38 2016 +0200
@@ -72,9 +72,7 @@
     },
 
     clearMessages: function() {
-        if (this.plainTitle !== '') {
-            this.setTitle(this.plainTitle);
-            this.getEl().dom.style['border-color'] = this.origColor;
-        }
+        this.setTitle(this.plainTitle);
+        this.getEl().dom.style['border-color'] = this.origColor;
     }
 });

http://lada.wald.intevation.org