summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-06-20 22:35:55 +0200
committeremkael <emkael@tlen.pl>2017-06-20 22:35:55 +0200
commitcd7bdbb74744e471990a34cb7ab201bc0cd2c19d (patch)
tree07a6a8064a740cae991e8b893980cf2bd5b50e83
parent0646c0253df9536b6b6cbbbc7b5d331f32eac4cf (diff)
Better detection of param change in hash
-rw-r--r--http/res/ranking.js7
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;