aboutsummaryrefslogtreecommitdiff
path: root/.themes/classic/source/javascripts
diff options
context:
space:
mode:
Diffstat (limited to '.themes/classic/source/javascripts')
-rw-r--r--.themes/classic/source/javascripts/github.js10
-rw-r--r--.themes/classic/source/javascripts/octopress.js1
2 files changed, 2 insertions, 9 deletions
diff --git a/.themes/classic/source/javascripts/github.js b/.themes/classic/source/javascripts/github.js
index 27a5a235..6cfc0b0b 100644
--- a/.themes/classic/source/javascripts/github.js
+++ b/.themes/classic/source/javascripts/github.js
@@ -13,7 +13,7 @@ var github = (function(){
return {
showRepos: function(options){
$.ajax({
- url: "https://api.github.com/users/"+options.user+"/repos?callback=?"
+ url: "https://api.github.com/users/"+options.user+"/repos?sort=pushed&callback=?"
, type: 'jsonp'
, error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); }
, success: function(data) {
@@ -23,14 +23,6 @@ var github = (function(){
if (options.skip_forks && data.data[i].fork) { continue; }
repos.push(data.data[i]);
}
- repos.sort(function(a, b) {
- var aDate = new Date(a.pushed_at).valueOf(),
- bDate = new Date(b.pushed_at).valueOf();
-
- if (aDate === bDate) { return 0; }
- return aDate > bDate ? -1 : 1;
- });
-
if (options.count) { repos.splice(options.count); }
render(options.target, repos);
}
diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js
index 379e6630..775fd335 100644
--- a/.themes/classic/source/javascripts/octopress.js
+++ b/.themes/classic/source/javascripts/octopress.js
@@ -11,6 +11,7 @@ function getNav() {
mobileNav.children('select').bind('change', function(event) {
if (event.target.value) { window.location.href = event.target.value; }
});
+ mobileNav.children('select').val('');
}
function addSidebarToggler() {