diff options
-rw-r--r-- | app/views/request/new.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/request/new.html.erb b/app/views/request/new.html.erb index 79b4f8548..5ea64aa30 100644 --- a/app/views/request/new.html.erb +++ b/app/views/request/new.html.erb @@ -4,7 +4,7 @@ // Avoid triggering too often (on each keystroke) by using the debounce jQuery plugin: // http://benalman.com/projects/jquery-throttle-debounce-plugin/ $("#typeahead_search").keypress($.debounce( 300, function() { - $("#typeahead_response").load("<%=search_ahead_url%>?q="+encodeURI(this.value), function() { + $("#typeahead_response").load("<%= search_ahead_url %>?q="+encodeURI(this.value)+"&requested_from=<%= @info_request.public_body.url_name %>", function() { // When following links in typeahead results, open new tab/window $("#typeahead_response a").attr("target","_blank"); |