Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-09-10 17:51:41 +0300
committersgiehl <stefan@piwik.org>2015-10-06 18:25:27 +0300
commitc7928e4f7f83fd60d8a9a1f7da4b8b267e081c0b (patch)
treecb6958891cdb81560fc04386bd0e60aa80d9f303 /plugins/UserCountry
parentd8df02c63a216a6ed7810d32dbf9d875b9364dc4 (diff)
new API to make checkTokenInUrl easier
Diffstat (limited to 'plugins/UserCountry')
-rwxr-xr-xplugins/UserCountry/javascripts/userCountry.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/UserCountry/javascripts/userCountry.js b/plugins/UserCountry/javascripts/userCountry.js
index 7cdaf9a640..68a74adb7a 100755
--- a/plugins/UserCountry/javascripts/userCountry.js
+++ b/plugins/UserCountry/javascripts/userCountry.js
@@ -23,6 +23,7 @@ $(document).ready(function () {
action: 'setCurrentLocationProvider',
id: $(this).val()
}, 'get');
+ ajaxRequest.withTokenInUrl();
ajaxRequest.setCallback(
function () {
var UI = require('piwik/UI');
@@ -81,6 +82,7 @@ $(document).ready(function () {
var ajaxRequest = new ajaxHelper();
ajaxRequest.addParams(data, 'post');
+ ajaxRequest.withTokenInUrl();
ajaxRequest.setCallback(function (response) {
if (!response || response.error) {
callback(response);
@@ -204,6 +206,7 @@ $(document).ready(function () {
isp_db: $('#geoip-isp-db').val(),
org_db: $('#geoip-org-db').val()
}, 'post');
+ ajaxRequest.withTokenInUrl();
ajaxRequest.setCallback(updateGeoIPSuccess);
ajaxRequest.send(false);
}