comparison app/view/widget/base/FieldSet.js @ 632:fead63bb5fb4

Updated images for errors and warnings.
author Raimund Renkert <raimund.renkert@intevation.de>
date Mon, 16 Mar 2015 17:09:15 +0100
parents d47ee7439f44
children 1e1534482bfd
comparison
equal deleted inserted replaced
622:ee92e352be20 632:fead63bb5fb4
24 this.origColor = this.getEl().dom.style['border-color']; 24 this.origColor = this.getEl().dom.style['border-color'];
25 if (error) { 25 if (error) {
26 this.getEl().dom.style['border-color'] = '#FF0000'; 26 this.getEl().dom.style['border-color'] = '#FF0000';
27 this.getEl().dom.firstChild.firstChild.firstChild 27 this.getEl().dom.firstChild.firstChild.firstChild
28 .children[ndx].innerHTML = 28 .children[ndx].innerHTML =
29 '<img src="resources/img/icon-error.gif" width="12" height="12" /> ' + 29 '<img src="resources/img/emblem-important.png" width="13" height="13" /> ' +
30 this.plainTitle; 30 this.plainTitle;
31 if (errorText) { 31 if (errorText) {
32 Ext.create('Ext.tip.ToolTip', { 32 Ext.create('Ext.tip.ToolTip', {
33 target: this.getEl().dom.firstChild.firstChild.firstChild.children[ndx], 33 target: this.getEl().dom.firstChild.firstChild.firstChild.children[ndx],
34 html: errorText 34 html: errorText
38 } 38 }
39 if (warning) { 39 if (warning) {
40 this.getEl().dom.style['border-color'] = '#FFE25D'; 40 this.getEl().dom.style['border-color'] = '#FFE25D';
41 this.getEl().dom.firstChild.firstChild.firstChild 41 this.getEl().dom.firstChild.firstChild.firstChild
42 .children[ndx].innerHTML = 42 .children[ndx].innerHTML =
43 '<img src="resources/img/icon-warning.gif" width="12" height="12" /> ' + 43 '<img src="resources/img/dialog-warning.png" width="13" height="13" /> ' +
44 this.plainTitle; 44 this.plainTitle;
45 if (warningText) { 45 if (warningText) {
46 Ext.create('Ext.tip.ToolTip', { 46 Ext.create('Ext.tip.ToolTip', {
47 target: this.getEl().dom.firstChild.firstChild.firstChild.children[ndx], 47 target: this.getEl().dom.firstChild.firstChild.firstChild.children[ndx],
48 html: warningText 48 html: warningText

http://lada.wald.intevation.org