diff options
author | sgiehl <stefangiehl@gmail.com> | 2012-11-20 02:00:41 +0400 |
---|---|---|
committer | sgiehl <stefangiehl@gmail.com> | 2012-11-20 02:00:41 +0400 |
commit | 99793151cd6d4f318b7a011509bd421685f0537a (patch) | |
tree | 623b9521c3551d32d5eb808f57511ed38fe8e19a /plugins/DBStats | |
parent | df1c54f0f7e50dfd670ab294d908e44ed4dbac44 (diff) |
refs #3359 moving ajax requests to a new ajax helper with more functionality as the old functions
git-svn-id: http://dev.piwik.org/svn/trunk@7489 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/DBStats')
-rwxr-xr-x | plugins/DBStats/templates/index.tpl | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/plugins/DBStats/templates/index.tpl b/plugins/DBStats/templates/index.tpl index 10f10e6864..18c559d1a1 100755 --- a/plugins/DBStats/templates/index.tpl +++ b/plugins/DBStats/templates/index.tpl @@ -125,17 +125,20 @@ var action = $(this).attr('action'); // build & execute AJAX request - piwikHelper.ajaxCall( - 'DBStats', - action, - {viewDataTable: 'table'}, - function(data) { - $('.loadingPiwik', self).remove(); - $(self).html(data); - }, - 'html', - true + var ajaxRequest = new ajaxHelper(); + ajaxRequest.addParams({ + module: 'DBStats', + action: action, + viewDataTable: 'table' + }, 'get'); + ajaxRequest.setCallback( + function (data) { + $('.loadingPiwik', self).remove(); + $(self).html(data); + } ); + ajaxRequest.setFormat('html'); + ajaxRequest.send(false); }); }); })( jQuery ); |