Sidebar work

This commit is contained in:
John Firebaugh 2013-09-27 18:02:50 -07:00
parent 6adcce4e5d
commit a01195f149
9 changed files with 12 additions and 38 deletions

View file

@ -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);
});
});
});