mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-25 05:03:13 +00:00
Replaced success() with done ()
This commit is contained in:
@@ -136,7 +136,7 @@ var defaultStackedColumnOptions = {
|
||||
*/
|
||||
function lineChart(URL, container, options) {
|
||||
"use strict";
|
||||
$.getJSON(URL).success(function (data) {
|
||||
$.getJSON(URL).done(function (data) {
|
||||
var ctx = document.getElementById(container).getContext("2d");
|
||||
var newData = {};
|
||||
newData.datasets = [];
|
||||
@@ -170,7 +170,7 @@ function lineChart(URL, container, options) {
|
||||
function areaChart(URL, container, options) {
|
||||
"use strict";
|
||||
|
||||
$.getJSON(URL).success(function (data) {
|
||||
$.getJSON(URL).done(function (data) {
|
||||
var ctx = document.getElementById(container).getContext("2d");
|
||||
var newData = {};
|
||||
newData.datasets = [];
|
||||
@@ -206,7 +206,7 @@ function columnChart(URL, container, options) {
|
||||
|
||||
options = options || {};
|
||||
|
||||
$.getJSON(URL).success(function (data) {
|
||||
$.getJSON(URL).done(function (data) {
|
||||
|
||||
var result = true;
|
||||
if (options.beforeDraw) {
|
||||
@@ -252,7 +252,7 @@ function stackedColumnChart(URL, container, options) {
|
||||
options = options || {};
|
||||
|
||||
|
||||
$.getJSON(URL).success(function (data) {
|
||||
$.getJSON(URL).done(function (data) {
|
||||
|
||||
var result = true;
|
||||
if (options.beforeDraw) {
|
||||
@@ -295,7 +295,7 @@ function stackedColumnChart(URL, container, options) {
|
||||
function pieChart(URL, container, options) {
|
||||
"use strict";
|
||||
|
||||
$.getJSON(URL).success(function (data) {
|
||||
$.getJSON(URL).done(function (data) {
|
||||
|
||||
var ctx = document.getElementById(container).getContext("2d");
|
||||
new Chart(ctx).Pie(data, defaultPieOptions);
|
||||
|
||||
Reference in New Issue
Block a user