diff --git a/plugins/CoreHome/templates/broadcast.js b/plugins/CoreHome/templates/broadcast.js index a7f7a1d693c9a9449da3ba0404615cae378ed053..557b2f9c87fd94fd794741a1e6e6c0f4c3d7241a 100644 --- a/plugins/CoreHome/templates/broadcast.js +++ b/plugins/CoreHome/templates/broadcast.js @@ -366,7 +366,7 @@ var broadcast = { } } var ajaxRequest = { - type: 'GET', + type: 'POST', url: urlAjax, dataType: 'html', async: true, diff --git a/plugins/CoreHome/templates/datatable.js b/plugins/CoreHome/templates/datatable.js index b82cf22d60d57bae60bd3baa81a5ef6341288e73..872023029c73be228c436dae3c0e99261433a65b 100644 --- a/plugins/CoreHome/templates/datatable.js +++ b/plugins/CoreHome/templates/datatable.js @@ -128,7 +128,7 @@ dataTable.prototype = //prepare the ajax request var ajaxRequest = { - type: 'GET', + type: 'POST', url: 'index.php', dataType: 'html', async: true, diff --git a/plugins/Dashboard/templates/dashboardObject.js b/plugins/Dashboard/templates/dashboardObject.js index 75dec3971a5da27afc6b71bc88cc83c8a19ee858..b38c12f813a442f34603028c4109c22b2bca58ee 100644 --- a/plugins/Dashboard/templates/dashboardObject.js +++ b/plugins/Dashboard/templates/dashboardObject.js @@ -157,12 +157,16 @@ var ajaxRequest = { type: 'POST', - url: 'index.php?module=Dashboard&action=resetLayout&token_auth='+piwik.token_auth, + url: 'index.php?module=Dashboard&action=resetLayout', dataType: 'html', async: false, error: piwikHelper.ajaxHandleError, success: function() { methods.loadDashboard.apply(this, [dashboardId])}, - data: { "idDashboard": dashboardId, "idSite": piwik.idSite } + data: { + token_auth: piwik.token_auth, + idDashboard: dashboardId, + idSite: piwik.idSite + } }; piwikHelper.showAjaxLoading(); $.ajax(ajaxRequest); @@ -228,7 +232,7 @@ piwikHelper.abortQueueAjax(); var ajaxRequest = { - type: 'GET', + type: 'POST', url: 'index.php?module=Dashboard&action=getDashboardLayout', dataType: 'json', async: true, @@ -409,7 +413,10 @@ var ajaxRequest = { type: 'POST', - url: 'index.php?module=Dashboard&action=getAllDashboards&token_auth='+piwik.token_auth, + url: 'index.php?module=Dashboard&action=getAllDashboards', + data: { + token_auth: piwik.token_auth + }, dataType: 'json', async: true, success: function(dashboards) { @@ -481,7 +488,7 @@ var ajaxRequest = { type: 'POST', - url: 'index.php?module=Dashboard&action='+action+'&token_auth='+piwik.token_auth, + url: 'index.php?module=Dashboard&action='+action, dataType: 'html', async: true, success: function() { @@ -492,6 +499,7 @@ }, error: piwikHelper.ajaxHandleError, data: { + token_auth: piwik.token_auth, layout: JSON.stringify(dashboardLayout), name: dashboardName, idDashboard: dashboardId @@ -511,7 +519,7 @@ var ajaxRequest = { type: 'POST', - url: 'index.php?module=Dashboard&action=removeDashboard&token_auth='+piwik.token_auth, + url: 'index.php?module=Dashboard&action=removeDashboard', dataType: 'html', async: false, success: function() { @@ -519,7 +527,8 @@ }, error: piwikHelper.ajaxHandleError, data: { - idDashboard: dashboardId + idDashboard: dashboardId, + token_auth: piwik.token_auth } }; piwikHelper.showAjaxLoading(); diff --git a/plugins/Dashboard/templates/widgetMenu.js b/plugins/Dashboard/templates/widgetMenu.js index 0735a92fdac04f5c3e221bf048c8e47e27b9ee4a..5697c071beca0fa0f8716ec4d73ded83f213cb47 100644 --- a/plugins/Dashboard/templates/widgetMenu.js +++ b/plugins/Dashboard/templates/widgetMenu.js @@ -19,8 +19,14 @@ widgetsHelper.getAvailableWidgets = function () if(!widgetsHelper.availableWidgets) { var ajaxRequest = { - type: 'GET', - url: 'index.php?module=Dashboard&action=getAvailableWidgets&token_auth='+piwik.token_auth+'&idSite='+piwik.idSite, + type: 'POST', + url: 'index.php', + data: { + module: 'Dashboard', + action: 'getAvailableWidgets', + token_auth: piwik.token_auth, + idSite: piwik.idSite + }, dataType: 'json', async: false, error: piwikHelper.ajaxHandleError, @@ -88,7 +94,7 @@ widgetsHelper.getLoadWidgetAjaxRequest = function (widgetUniqueId, widgetParamet return { widgetUniqueId:widgetUniqueId, - type: 'GET', + type: 'POST', url: 'index.php', dataType: 'html', async: true, diff --git a/plugins/PrivacyManager/templates/privacySettings.js b/plugins/PrivacyManager/templates/privacySettings.js index c276e59cd995a26a12f8c99e5922e2436d920f65..fa2c37b146dc7534e564b907d8c6e267e5f99ddc 100644 --- a/plugins/PrivacyManager/templates/privacySettings.js +++ b/plugins/PrivacyManager/templates/privacySettings.js @@ -47,7 +47,7 @@ $(document).ready(function() { } currentRequest = $.ajax({ - type: 'GET', + type: 'POST', url: 'index.php?module=PrivacyManager&action=getDatabaseSize', dataType: 'html', async: true, diff --git a/plugins/SEO/templates/rank.js b/plugins/SEO/templates/rank.js index 806dde55bfdc3d06e4ab3e4196037b9e08af422e..a6fb602cdfdfe9a72bc1c97ab0e9095ccf7c41ca 100644 --- a/plugins/SEO/templates/rank.js +++ b/plugins/SEO/templates/rank.js @@ -11,7 +11,7 @@ $(document).ready(function() { piwikHelper.showAjaxLoading('ajaxLoadingSEO'); var ajaxRequest = { - type: 'GET', + type: 'POST', url: 'index.php', dataType: 'html', error: piwikHelper.ajaxHandleError, diff --git a/plugins/UserCountry/templates/admin.js b/plugins/UserCountry/templates/admin.js index b01d019c24c60692d918aa640e81f1f1a3dd26d9..88ebf559dfd4a5cc7e72411228f533126757189b 100755 --- a/plugins/UserCountry/templates/admin.js +++ b/plugins/UserCountry/templates/admin.js @@ -49,7 +49,7 @@ $(document).ready(function() { loading.show(); $.ajax({ - type: 'GET', + type: 'POST', url: 'index.php', data: { module: 'UserCountry',