mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -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) {
|
$.getJSON('chart/home/recurring').success(function (data) {
|
||||||
|
if (data[0].data.length == 0) {
|
||||||
|
$('#recurring').parent().parent().remove();
|
||||||
|
} else {
|
||||||
$('#recurring').highcharts({
|
$('#recurring').highcharts({
|
||||||
title: {
|
title: {
|
||||||
text: null
|
text: null
|
||||||
@ -247,6 +250,7 @@ $(function () {
|
|||||||
},
|
},
|
||||||
series: data
|
series: data
|
||||||
});
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue
Block a user