fix colored tree list icons in doc panel

This commit is contained in:
rolux 2012-12-29 16:13:07 +01:00
parent 914d92f135
commit fe32615c6b
2 changed files with 2 additions and 2 deletions

View file

@ -193,7 +193,7 @@ Ox.DocPanel = function(options, self) {
if (!Ox.isEmpty(self.options.results)) {
$icon = Ox.Theme.getColorImage(
'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
);
} else if (!Ox.endsWith(id, '/')) {

View file

@ -165,7 +165,7 @@ Ox.Theme = (function() {
that.getColorImage = function(name, value, tooltip) {
return (tooltip ? Ox.Element({element: '<img>', tooltip: tooltip}) : $('<img>'))
.addClass('OxColor OxColorName')
.attr({src: Ox.UI.getImageURL(name, null, value)})
.attr({src: Ox.UI.getImageURL(name, value)})
.data({OxColor: value, OxImage: name});
};