Sidebar close reverts to 'view' state
This commit is contained in:
parent
774aa0c875
commit
e7d200c4a6
17 changed files with 19 additions and 25 deletions
|
@ -49,12 +49,12 @@ OSM.Search = function(map) {
|
|||
page.pushstate = page.popstate = function(path) {
|
||||
var params = querystring.parse(path.substring(path.indexOf('?') + 1));
|
||||
$("#query").val(params.query);
|
||||
$("#sidebar").removeClass("minimized");
|
||||
map.invalidateSize();
|
||||
$("#sidebar_content").load(path, page.load);
|
||||
};
|
||||
|
||||
page.load = function() {
|
||||
$("#sidebar").removeClass("minimized");
|
||||
$(".search_results_entry").each(function() {
|
||||
var entry = $(this);
|
||||
$.ajax({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue