]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/_search.html.erb
Use querystring, stop manually building urls
[rails.git] / app / views / site / _search.html.erb
index c074a49a30804082ff6c1d5fbe8e07abf3eb423d..52adf66e1817e31df290976d10bb5f4883da5d21 100644 (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 %>", {