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"); 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) {