Commit c703ee60 authored by onny's avatar onny

fix hash location navigation

parent 77562b17
......@@ -392,5 +392,23 @@ $(function(){
});
// On app start, load top list
load_menu_state();
if(window.location.hash) {
var hash = String(window.location.hash.replace('#',''));
switch(hash) {
case "top":
switch_menu(0);
break;
case "recent":
switch_menu(1);
break;
case "favorites":
switch_menu(2);
break;
default:
switch_menu(0);
break;
}
} else {
load_menu_state();
};
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment