Commit b018c190 authored by Jérome Perrin's avatar Jérome Perrin

GUI: if plugin set a color for result comparision widget, just use this value

parent 858f50c2
...@@ -91,6 +91,9 @@ ...@@ -91,6 +91,9 @@
if (value.delay > 0.5) { if (value.delay > 0.5) {
color = "red"; color = "red";
} }
if ( value.color ) { // if color passed in plugin, we use it as is.
color = value.color;
}
$(td).text("").css({"background-color": color}); $(td).text("").css({"background-color": color});
a = $("<a>").attr("href", value.link) a = $("<a>").attr("href", value.link)
.text(value.completionDate + "\n" + (value.delayText || (value.delay || 0).toFixed(0))) .text(value.completionDate + "\n" + (value.delayText || (value.delay || 0).toFixed(0)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment