Merge "Don't draw an e-r graph if no data"
This commit is contained in:
commit
14cd19b506
@ -40,11 +40,15 @@ function update() {
|
|||||||
}
|
}
|
||||||
div = div.find(".graph");
|
div = div.find(".graph");
|
||||||
|
|
||||||
|
if (bug['data'].length > 0) {
|
||||||
$.plot(div, bug['data'],
|
$.plot(div, bug['data'],
|
||||||
{xaxis: {
|
{xaxis: {
|
||||||
mode: "time"
|
mode: "time"
|
||||||
}}
|
}}
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
div.html("No matches");
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
$.each($('.bug-container'), function(i, container) {
|
$.each($('.bug-container'), function(i, container) {
|
||||||
|
Loading…
Reference in New Issue
Block a user