From c77c9443e9426967a57fb964a8f61a92b1a69eba Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 11 Oct 2015 17:24:56 -0400 Subject: Do not hardcode reset filter value --- assets/js/src/Search.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'assets/js/src') 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(); } }); }; - -- cgit v1.2.3