diff options
Diffstat (limited to 'assets/js/src')
-rw-r--r-- | assets/js/src/Search.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/assets/js/src/Search.js b/assets/js/src/Search.js index 1e7e294a..de4d5959 100644 --- a/assets/js/src/Search.js +++ b/assets/js/src/Search.js @@ -89,14 +89,15 @@ Search.prototype.keyboardShortcuts = function() { // Reset to the search field Mousetrap.bind("r", function(e) { e.preventDefault(); - $("#form-search").val("status:open"); + var reset = $(".filter-reset").data("filter"); + + $("#form-search").val(reset); if ($('#board').length) { - self.app.board.reloadFilters("status:open"); + self.app.board.reloadFilters(reset); } else { $("form.search").submit(); } }); }; - |