Fixed cross site json call bug.

This commit is contained in:
Marcus Whybrow 2012-06-13 20:10:35 +01:00
parent efde54e1e3
commit 4e146d686f

View File

@ -17,9 +17,10 @@
<script type="text/javascript" src="assets/js/bootstrap.min.js"></script> <script type="text/javascript" src="assets/js/bootstrap.min.js"></script>
<script type="text/javascript"> <script type="text/javascript">
$(function() { $(function() {
var milestonesUrl = "https://api.github.com/repos/marcuswhybrow/minecraft-server-manager/milestones"; var milestonesUrl = "https://api.github.com/repos/marcuswhybrow/minecraft-server-manager/milestones?callback=?";
$.getJSON(milestonesUrl, function(milestones) { $.getJSON(milestonesUrl, function(result) {
var milestones = result.data;
$.each(milestones, function(i, milestone) { $.each(milestones, function(i, milestone) {
var closedIssues = milestone.closed_issues; var closedIssues = milestone.closed_issues;