fix colored tree list icons in doc panel
This commit is contained in:
parent
914d92f135
commit
fe32615c6b
2 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ Ox.DocPanel = function(options, self) {
|
||||||
if (!Ox.isEmpty(self.options.results)) {
|
if (!Ox.isEmpty(self.options.results)) {
|
||||||
$icon = Ox.Theme.getColorImage(
|
$icon = Ox.Theme.getColorImage(
|
||||||
'symbol' + (expanded === true ? 'Down' : expanded === false ? 'Right' : 'Center'),
|
'symbol' + (expanded === true ? 'Down' : expanded === false ? 'Right' : 'Center'),
|
||||||
!results ? 'none' : results.failed === 0 ? 'passed' : 'failed',
|
!results ? '' : results.failed === 0 ? 'passed' : 'failed',
|
||||||
self.options.showTooltips ? getTooltip(results) : null
|
self.options.showTooltips ? getTooltip(results) : null
|
||||||
);
|
);
|
||||||
} else if (!Ox.endsWith(id, '/')) {
|
} else if (!Ox.endsWith(id, '/')) {
|
||||||
|
|
|
@ -165,7 +165,7 @@ Ox.Theme = (function() {
|
||||||
that.getColorImage = function(name, value, tooltip) {
|
that.getColorImage = function(name, value, tooltip) {
|
||||||
return (tooltip ? Ox.Element({element: '<img>', tooltip: tooltip}) : $('<img>'))
|
return (tooltip ? Ox.Element({element: '<img>', tooltip: tooltip}) : $('<img>'))
|
||||||
.addClass('OxColor OxColorName')
|
.addClass('OxColor OxColorName')
|
||||||
.attr({src: Ox.UI.getImageURL(name, null, value)})
|
.attr({src: Ox.UI.getImageURL(name, value)})
|
||||||
.data({OxColor: value, OxImage: name});
|
.data({OxColor: value, OxImage: name});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue