Permalink
Browse files

Fixed js bug.

This bug prevented the application.js from loading.
  • Loading branch information...
kcalmes committed Dec 1, 2012
1 parent 607c47d commit 56d9c9b05bedc3e5dabfc3ac6bea123b1c60e625
Showing with 3 additions and 1 deletion.
  1. +3 −1 js/partials.js
View
@@ -5,5 +5,7 @@ $(function(){
function navigate(){
var page = document.location.hash.substr(1);
- $('#main-content').html(new EJS({url: './pages/'+page+'.ejs'}).render({}));
+ if(page != ""){
+ $('#main-content').html(new EJS({url: './pages/'+page+'.ejs'}).render({}));
+ }
}

0 comments on commit 56d9c9b

Please sign in to comment.