diff options
author | Gareth Rees <gareth@mysociety.org> | 2014-10-30 12:56:39 +0000 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2014-11-11 16:02:18 +0000 |
commit | e12ef04af94676ee7c308233c6904da74a4a7ac9 (patch) | |
tree | 8858da2554e6efb66cf96bfd48f550cc560c5cd7 | |
parent | c8fc7884e1e13e7a46ea720fe7fd4d47d095a67f (diff) |
Filter related requests by body on /new/:body
-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"); |