From cd7bdbb74744e471990a34cb7ab201bc0cd2c19d Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 20 Jun 2017 22:35:55 +0200 Subject: Better detection of param change in hash --- http/res/ranking.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'http') 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; -- cgit v1.2.3