page.pushstate = page.popstate = function(path) {
var params = querystring.parse(path.substring(path.indexOf('?') + 1));
$(".search_form input[name=query]").val(params.query);
- map.invalidateSize();
- $("#sidebar_content").load(path, function(a, b, xhr) {
- if (xhr.getResponseHeader('X-Page-Title')) {
- document.title = xhr.getResponseHeader('X-Page-Title');
- }
- page.load();
- });
+ OSM.loadSidebarContent(path, page.load);
};
page.load = function() {