Skip to content

Commit

Permalink
SAK-32599 - Problem with new copyright dialog and weblinks (sakaiproj…
Browse files Browse the repository at this point in the history
  • Loading branch information
jonespm authored Jun 14, 2017
1 parent 89122e3 commit 9def66c
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,12 @@
},
error: function (xhr, ajaxOptions, thrownError) {
window.console && console.log("Error from GET request"+thrownError);

//If its a URL match it might be denied by CORS, just try to post it, it's should have already passed copyright
if (url.match(/\.URL$/)) {
var form = jQuery('<form method="GET" action="' + url + '" target="_blank">');
jQuery('body').append(form);
form.submit();
}
}
});
};
Expand Down

0 comments on commit 9def66c

Please sign in to comment.