[Lada-commits] [PATCH 1 of 2] Clear messages regardless of whether title is an empty string

Wald Commits scm-commit at wald.intevation.org
Tue Sep 20 18:17:09 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1474388078 -7200
# Node ID 47991f0d783736436e5814f30bcb37392be66194
# Parent  39d98891881c420189ad551c4ed52f698c6909a9
Clear messages regardless of whether title is an empty string.

diff -r 39d98891881c -r 47991f0d7837 app/view/widget/base/FieldSet.js
--- 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;
     }
 });


More information about the Lada-commits mailing list