Mercurial > lada > lada-client
comparison app/view/widget/base/FieldSet.js @ 1193:3e078af76b58
Do not try to display an undefined title.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 08 Sep 2016 10:06:07 +0200 |
parents | 777bf66dbb11 |
children | 47991f0d7837 |
comparison
equal
deleted
inserted
replaced
1191:62f374ea7ab7 | 1193:3e078af76b58 |
---|---|
27 this.errorText += errorText; | 27 this.errorText += errorText; |
28 if (this.warningText && this.warningText !== '') { | 28 if (this.warningText && this.warningText !== '') { |
29 this.warningText += '\n'; | 29 this.warningText += '\n'; |
30 } | 30 } |
31 this.warningText += warningText; | 31 this.warningText += warningText; |
32 this.plainTitle = this.title; | 32 |
33 if (this.title) { | |
34 this.plainTitle = this.title; | |
35 } | |
33 this.origColor = this.getEl().dom.style['border-color']; | 36 this.origColor = this.getEl().dom.style['border-color']; |
34 var imgId = Ext.id(); | 37 var imgId = Ext.id(); |
35 if (error) { | 38 if (error) { |
36 this.getEl().dom.style['border-color'] = '#FF0000'; | 39 this.getEl().dom.style['border-color'] = '#FF0000'; |
37 this.setTitle('<img src="resources/img/emblem-important.png" width="13" height="13" id="'+ imgId +'"/> '+ | 40 this.setTitle('<img src="resources/img/emblem-important.png" width="13" height="13" id="'+ imgId +'"/> '+ |