From dc80790088bcab312b72e1d83725ee7931708b44 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 24 Jun 2013 12:55:16 +1200 Subject: [PATCH] CRM-12887 switch to use load function --- templates/CRM/Contribute/Page/DashBoard.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/templates/CRM/Contribute/Page/DashBoard.js b/templates/CRM/Contribute/Page/DashBoard.js index 71c49df783..f68004ceb9 100644 --- a/templates/CRM/Contribute/Page/DashBoard.js +++ b/templates/CRM/Contribute/Page/DashBoard.js @@ -19,22 +19,12 @@ cj(function ($) { } chartUrl = CRM.url("civicrm/ajax/chart", {snippet : 4}); chartUrl += "&year=" + year + "&type=" + charttype; - $.ajax({ - url : chartUrl, - success : function(html) { - $("#chartData").html(html); - } - }); + $(chartData).load(chartUrl); } function buildTabularView() { var tableUrl = CRM.url("civicrm/contribute/ajax/tableview", {showtable: 1, snippet: 4}); - $.ajax({ - url : tableUrl, - success : function(html) { - $("#tableData").html(html); - } - }); + $(tableData).load(tableUrl); } getChart(); -- 2.25.1