Replaced success() with done ()

This commit is contained in:
James Cole
2016-02-04 07:30:12 +01:00
parent 7343304284
commit fb119cc208
9 changed files with 19 additions and 19 deletions

View File

@@ -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);