Skip to content
Snippets Groups Projects
Commit b52eb923 authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

Fix for JSONP handling.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2927 44740490-163a-0410-bde0-09ae8108e29a
parent e31182c0
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ DiscoJuice.Control = {
// If SP EntityID is set in configuration make sure it is sent as a parameter
// to the feed endpoint.
var discosettings = this.parent.Utils.options.get('disco');
if (discosettings) {
if (this.parent.Utils.options.get('discoSetRequestor', false)) {
parameters.entityID = discosettings.spentityid;
}
......@@ -95,7 +95,7 @@ DiscoJuice.Control = {
var j = i+1;
$.ajax({
url: curmdurl,
// dataType: 'jsonp',
dataType: 'jsonp',
jsonpCallback: function() { return 'dj_md_' + j; },
cache: true,
data: parameters,
......@@ -906,6 +906,7 @@ DiscoJuice.Control = {
$.ajax({
cache: true,
url: countryapi,
dataType: 'jsonp',
jsonpCallback: function() { return 'dj_country'; },
success: function(data) {
if (data && data.status == 'ok' && data.country) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment