summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-04-12 19:09:24 +0200
committeremkael <emkael@tlen.pl>2017-04-12 19:09:24 +0200
commitdc0747e7a8e75a6b47c752f0f48e7d4298f3a46d (patch)
tree8eb66f050e61bf6a01a30bb15644f8736a8141c0
parent5af67365b2420a316e75aaac5a798eaa7ebab461 (diff)
Hiding ranking table on param change as early as possible
-rw-r--r--http/res/ranking.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/res/ranking.js b/http/res/ranking.js
index 6d3b0ac..1d8923c 100644
--- a/http/res/ranking.js
+++ b/http/res/ranking.js
@@ -173,8 +173,8 @@ var ranking = {
});
$('button[data-filter]').click(function() {
- $('table.table-paginate').paginate('clear');
$('table.table').css('opacity', 0.1);
+ $('table.table-paginate').paginate('clear');
var button = $(this);
var params = ranking.parseHash(location.hash);
var param = params.get(button.attr('data-filter'));
@@ -198,8 +198,8 @@ var ranking = {
});
$('button[data-clear]').click(function() {
- $('table.table-paginate').paginate('clear');
$('table.table').css('opacity', 0.1);
+ $('table.table-paginate').paginate('clear');
var button = $(this);
var params = ranking.parseHash(location.hash);
params.delete(button.attr('data-clear'));