diff options
-rw-r--r-- | app/views/request/new.rhtml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/request/new.rhtml b/app/views/request/new.rhtml index 9adf5d383..4301d639a 100644 --- a/app/views/request/new.rhtml +++ b/app/views/request/new.rhtml @@ -4,7 +4,10 @@ // 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)); + $("#typeahead_response").load("<%=search_ahead_url%>?q="+encodeURI(this.value), function() { + // When following links in typeahead results, open new tab/window + $("#typeahead_response a").attr("target","_blank"); + }); })); }); </script> |