Use querystring, stop manually building urls

This commit is contained in:
Tom MacWright 2013-06-10 15:04:07 -07:00 committed by John Firebaugh
parent 33aa0a6e45
commit 5fc7a47f6d
5 changed files with 297 additions and 64 deletions

View file

@ -1,7 +1,7 @@
<script type="text/javascript">
<!--
function describeLocation() {
var args = getArgs($("#viewanchor").attr("href"));
var args = querystring.parse($("#viewanchor").attr("href").split('?')[1]);
$("#sidebar_title").html("<%= t 'site.sidebar.search_results' %>");
$("#sidebar_content").load("<%= url_for :controller => :geocoder, :action => :description %>", {