Skip to content

Commit

Permalink
Fix search instead of nav prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
blockspeiser committed Jun 2, 2015
1 parent 51314a8 commit 191904b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion static/js/reader.js
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@ $(function() {

function navQueryOrSearch(query) {
if (query in sjs.booksDict) {
window.location = "/" + query;
window.location = "/" + query + "?nav_query=" + query;
} else if (isRef(query)) {
sjs._direction = 1;
get(parseRef(query));
Expand Down
1 change: 0 additions & 1 deletion templates/js/headers.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
// Displays an option under the search box to search for 'query' rather
// than treat it as a navigational query.
var html = "<div id='searchInsteadOfNavPrompt'>" +
"<i class="
"Search for '<a href='/search?q=" + query + "'>" + query + "</a>' instead." +
"</div>";
$("#searchInsteadOfNavPrompt").remove();
Expand Down

0 comments on commit 191904b

Please sign in to comment.