Sidebar work
This commit is contained in:
parent
6adcce4e5d
commit
a01195f149
9 changed files with 12 additions and 38 deletions
|
@ -10,10 +10,9 @@ $(document).ready(function () {
|
|||
$("#search_form").submit(function (e) {
|
||||
e.preventDefault();
|
||||
|
||||
$("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
|
||||
$("#sidebar_content").load($(this).attr("action"), {
|
||||
query: $("#query").val()
|
||||
}, openSidebar);
|
||||
});
|
||||
});
|
||||
|
||||
$("#describe_location").click(function (e) {
|
||||
|
@ -21,11 +20,10 @@ $(document).ready(function () {
|
|||
|
||||
var mapParams = OSM.mapParams();
|
||||
|
||||
$("#sidebar_title").html(I18n.t('site.sidebar.search_results'));
|
||||
$("#sidebar_content").load($(this).attr("href"), {
|
||||
lat: mapParams.lat,
|
||||
lon: mapParams.lon,
|
||||
zoom: mapParams.zoom
|
||||
}, openSidebar);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue