diff options
author | emkael <emkael@tlen.pl> | 2018-05-24 00:06:28 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-05-24 00:06:28 +0200 |
commit | 8bdf2b728334890458833c03fab378bfaa05d529 (patch) | |
tree | 3a9314877a2e1f3ade4d36e2b5dd386c48552d8c /http/_res | |
parent | a0d6feda81192f9ad9040340e71fa544995a1f5f (diff) |
Filtering by club
Diffstat (limited to 'http/_res')
-rw-r--r-- | http/_res/ranking.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/http/_res/ranking.js b/http/_res/ranking.js index c493ea3..3b116d6 100644 --- a/http/_res/ranking.js +++ b/http/_res/ranking.js @@ -53,7 +53,7 @@ var ranking = { readHash : function(force) { var params = ranking.parseHash(location.hash); - var allParams = ['age', 'gender', 'region', 'name', 'page', 'pagesize']; + var allParams = ['age', 'gender', 'region', 'name', 'page', 'pagesize', 'club']; var paramsChanged = false; if (force) { paramsChanged = true; @@ -107,6 +107,10 @@ var ranking = { if (row['player'].trim().toLowerCase().search(value.join('')) == -1) { hidden = true; } + } else if (param == 'club') { + if (row['club'].trim().toLowerCase().search(value.join('')) == -1) { + hidden = true; + } } else if (param.substr(0, 4) != 'page') { if (value.indexOf(row[param].trim()) == -1) { hidden = true; |