diff options
author | emkael <emkael@tlen.pl> | 2017-06-20 22:35:55 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-06-20 22:35:55 +0200 |
commit | cd7bdbb74744e471990a34cb7ab201bc0cd2c19d (patch) | |
tree | 07a6a8064a740cae991e8b893980cf2bd5b50e83 | |
parent | 0646c0253df9536b6b6cbbbc7b5d331f32eac4cf (diff) |
Better detection of param change in hash
-rw-r--r-- | http/res/ranking.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/http/res/ranking.js b/http/res/ranking.js index bae4be9..e36a992 100644 --- a/http/res/ranking.js +++ b/http/res/ranking.js @@ -194,10 +194,13 @@ var ranking = { $('.container .table tbody tr').click(ranking.playerClick); $(document).ready(function() { - $(window).on('hashchange', ranking.readHash).trigger('hashchange'); + $(window).on('hashchange', function() { + ranking.filtersDisabled = true; + $('table.data-table, .filters .panel-body').css('opacity', 0.1); + ranking.readHash(); + }).trigger('hashchange'); }); - var handleParams = function(callback, target, ev) { if (!ranking.filtersDisabled) { ranking.filtersDisabled = true; |