|
|
@ -13,7 +13,7 @@ var github = (function(){
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
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'
|
|
|
|
, type: '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) {
|
|
|
|