diff options
author | Frederic Guillot <fred@kanboard.net> | 2015-10-11 17:24:56 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2015-10-11 17:24:56 -0400 |
commit | c77c9443e9426967a57fb964a8f61a92b1a69eba (patch) | |
tree | e82e134bbe58f275324f2784e91a10245b87c168 /assets/js/src | |
parent | dc0749ecce232a5a68d83fbde965ee4ee8e36d00 (diff) |
Do not hardcode reset filter value
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(); } }); }; - |