Merge "Don't draw an e-r graph if no data"

This commit is contained in:
Jenkins 2013-11-28 16:45:28 +00:00 committed by Gerrit Code Review
commit 14cd19b506

View File

@ -40,11 +40,15 @@ function update() {
}
div = div.find(".graph");
$.plot(div, bug['data'],
{xaxis: {
mode: "time"
}}
);
if (bug['data'].length > 0) {
$.plot(div, bug['data'],
{xaxis: {
mode: "time"
}}
);
} else {
div.html("No matches");
}
});
$.each($('.bug-container'), function(i, container) {