From 43751b76d3a3e217b367fa5581ef6032379d1c49 Mon Sep 17 00:00:00 2001 From: Floyd Pink Date: Fri, 15 Feb 2013 02:21:55 +0100 Subject: [PATCH] Fixed issue with mobile nav choosing the last option by default. Fixes #950. --- .themes/classic/source/javascripts/octopress.js | 1 + 1 file changed, 1 insertion(+) diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index 379e663..775fd33 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() {