changeset 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 39d98891881c
children 112fd60f1fb4
files app/view/widget/base/FieldSet.js
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
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