off by one fromString

This commit is contained in:
j 2010-12-08 02:36:02 +01:00
parent ac7a52562f
commit 3729153e29

View file

@ -25,7 +25,7 @@ var app = new Ox.App({
selectedMovies: [] selectedMovies: []
}; };
app.Query.fromString(location.hash.substr(2)); app.Query.fromString(location.hash.substr(1));
app.$ui.mainMenu = app.constructMainMenu(); app.$ui.mainMenu = app.constructMainMenu();
app.$ui.sections = app.constructSections(); app.$ui.sections = app.constructSections();
@ -84,7 +84,7 @@ app.url = function(url) {
var view = url.split('/')[2] || app.user.ui.itemView; var view = url.split('/')[2] || app.user.ui.itemView;
app.constructItem(id, view); app.constructItem(id, view);
} else { } else {
app.Query.fromString(location.hash.substr(2)); app.Query.fromString(location.hash.substr(1));
app.$ui.rightPanel.replace(1, app.constructContentPanel()); app.$ui.rightPanel.replace(1, app.constructContentPanel());
} }
} }