Skip to content

Commit

Permalink
Fix Quicksearch on Enter Submit
Browse files Browse the repository at this point in the history
Existing code submitted the form without the 'action' => 'query' form
data. This would cause a search to fail. I've moved that data into a
hidden input so it will always be submitted regardless of submission
method (click or enter).
  • Loading branch information
Cody Maggard authored and MasterOdin committed Feb 16, 2015
1 parent 0fc29cd commit 87230c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/js/salr.js
Original file line number Diff line number Diff line change
Expand Up @@ -1177,8 +1177,8 @@ SALR.prototype.addSearchThreadForm = function() {
'<input type="hidden" name="username_filter" value="type a username">'+
*/
'<input id="salrSearch" name="q" size="25" style="">'+
//'<input type="submit" value="Search thread">'+
'<button type="submit" name="action" value="query">Search</button>'
'<input name="action" value="query" type="hidden">'+
'<button type="submit">Search</button>'+
'</form>'+
'</span>';

Expand Down

0 comments on commit 87230c8

Please sign in to comment.