]> git.openstreetmap.org Git - rails.git/commitdiff
Fix search
authorJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 11 Nov 2013 21:39:20 +0000 (13:39 -0800)
committerJohn Firebaugh <john.firebaugh@gmail.com>
Mon, 11 Nov 2013 21:39:20 +0000 (13:39 -0800)
app/assets/javascripts/index/search.js

index 7f6eac9ca723a3a3b62e262539d96b5d1d741bb8..fde4c249947a81e6e0f40b7dfac458b18cd98bd6 100644 (file)
@@ -50,7 +50,7 @@ OSM.Search = function(map) {
     var params = querystring.parse(path.substring(path.indexOf('?') + 1));
     $(".search_form input[name=query]").val(params.query);
     map.invalidateSize();
-    $("#sidebar_content").load(path, function() {
+    $("#sidebar_content").load(path, function(a, b, xhr) {
       if (xhr.getResponseHeader('X-Page-Title')) {
         document.title = xhr.getResponseHeader('X-Page-Title');
       }