diff options
author | emkael <emkael@tlen.pl> | 2017-06-08 00:26:13 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-06-08 00:26:13 +0200 |
commit | d2abe60644480600203392371fd3dee668ad00a6 (patch) | |
tree | 443a5b27fc42c8749e1d8aa4fc509275e441f873 | |
parent | 516679dc7d2f94d2b84b389361cac1b1b1336d3e (diff) |
Ctrl+click support on filters panel
-rw-r--r-- | http/res/ranking.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/http/res/ranking.js b/http/res/ranking.js index 3d5cdf2..063b32d 100644 --- a/http/res/ranking.js +++ b/http/res/ranking.js @@ -175,7 +175,7 @@ var ranking = { $(window).on('hashchange', ranking.readHash).trigger('hashchange'); }); - $('button[data-filter]').click(function() { + $('button[data-filter]').click(function(ev) { $('table.table').css('opacity', 0.1); var button = $(this); var params = ranking.parseHash(location.hash); @@ -185,7 +185,7 @@ var ranking = { if (index > -1) { param = param.filter(function(v) { return v != value; }); } else { - if (!param) { + if (!param || !ev.ctrlKey) { param = []; } param.push(value); |