mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-12-31 19:27:51 -06:00
Remove chart when nothing to show.
This commit is contained in:
parent
b7517b49ed
commit
aceb683d07
@ -212,6 +212,9 @@ $(function () {
|
||||
});
|
||||
|
||||
$.getJSON('chart/home/recurring').success(function (data) {
|
||||
if (data[0].data.length == 0) {
|
||||
$('#recurring').parent().parent().remove();
|
||||
} else {
|
||||
$('#recurring').highcharts({
|
||||
title: {
|
||||
text: null
|
||||
@ -247,6 +250,7 @@ $(function () {
|
||||
},
|
||||
series: data
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user