This repository was archived by the owner on Mar 3, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments