Skip to content
This repository was archived by the owner on Mar 3, 2020. It is now read-only.

Commit 91b5a40

Browse files
committed
Fixed status filter
1 parent 285a4f7 commit 91b5a40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/static/js/fb-ctf.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ function setupInputListeners() {
395395

396396
$.when(mapLoaded, confDataLoaded, countryDataLoaded, loadingLoaded).done(function() {
397397
renderCountryData();
398+
refreshMapData();
398399
});
399400

400401
// do stuff when the map and modules are loaded
@@ -1530,6 +1531,7 @@ function setupInputListeners() {
15301531
$('#' + key)[0].parentNode.children[1].classList.add("captured--you");
15311532
//$('#' + key)[0].parentNode.removeAttribute('data-captured');
15321533
$('#' + key)[0].parentNode.setAttribute('data-captured', value.datacaptured);
1534+
$('#' + key)[0].parentNode.setAttribute('data-status', 'completed');
15331535
} else if (value.captured == 'opponent') {
15341536
//$('#' + key)[0].parentNode.children[1].classList.remove("captured--you");
15351537
$('#' + key)[0].parentNode.children[1].classList.add("captured--opponent");
@@ -1637,9 +1639,7 @@ function setupInputListeners() {
16371639
// add the category
16381640
$group.attr('data-category', data.category);
16391641
// add the status
1640-
var completed_list = data.completed;
1641-
var data_status = (completed_list.indexOf(FB_CTF.data.CONF.currentTeam) >= 0) ? 'completed' : 'remaining';
1642-
$group.attr('data-status', data_status);
1642+
$group.attr('data-status', 'remaining');
16431643
}
16441644
});
16451645
}

0 commit comments

Comments
 (0)