Fixed GitHub jsonp call. Closed #1118

This commit is contained in:
Brandon Mathis 2013-03-10 14:35:00 -05:00
parent 4157cda54c
commit c35ff7b660

View File

@ -14,7 +14,7 @@ var github = (function(){
showRepos: function(options){ showRepos: function(options){
$.ajax({ $.ajax({
url: "https://api.github.com/users/"+options.user+"/repos?sort=pushed&callback=?" url: "https://api.github.com/users/"+options.user+"/repos?sort=pushed&callback=?"
, type: 'jsonp' , dataType: 'jsonp'
, error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); } , error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); }
, success: function(data) { , success: function(data) {
var repos = []; var repos = [];