mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Fix charts. [skip ci]
This commit is contained in:
parent
6a750a998f
commit
5cd1e7c100
@ -268,19 +268,6 @@ function areaChart(URL, container, options) {
|
|||||||
function columnChart(URL, container, options) {
|
function columnChart(URL, container, options) {
|
||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
// find the parent box:
|
|
||||||
var cont = $('#' + container);
|
|
||||||
var box = cont.parents(".box").first();
|
|
||||||
var boxId = box.attr('id');
|
|
||||||
if (boxId) {
|
|
||||||
var state = getBoxState(boxId);
|
|
||||||
if (state == 'closed') {
|
|
||||||
console.log('Will not draw columnChart(' + URL + ') because ' + boxId + ' is closed.');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
$.getJSON(URL).done(function (data) {
|
$.getJSON(URL).done(function (data) {
|
||||||
|
Loading…
Reference in New Issue
Block a user