File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ <h1>Histórico de Partidas</h1>
131
131
src ="https://code.jquery.com/jquery-3.7.1.min.js "
132
132
integrity ="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo= "
133
133
crossorigin ="anonymous "> </ script >
134
- < script type ="module " src ="./index.js?v=8 "> </ script >
134
+ < script type ="module " src ="./index.js?v=9 "> </ script >
135
135
< script >
136
136
if ( 'serviceWorker' in navigator ) {
137
137
navigator . serviceWorker . register ( './serviceWorker.js' , { scope : '/peladaManager/' } ) ;
Original file line number Diff line number Diff line change @@ -303,6 +303,9 @@ $("#start-match-day").click(function() {
303
303
$ ( "#update-match-day" ) . click ( function ( ) {
304
304
maxPoints = parseInt ( $ ( "#max-points" ) . val ( ) ) ;
305
305
playersPerTeam = $ ( "#players-per-team" ) . val ( ) ;
306
+
307
+ if ( $ ( "#auto-switch-teams" ) . is ( ":checked" ) ) autoSwitchTeamsPoints = parseInt ( $ ( "#auto-switch-teams-points" ) . val ( ) ) ;
308
+ else autoSwitchTeamsPoints = 0 ;
306
309
307
310
if ( playersPerTeam * 2 > players . length ) {
308
311
alert ( "Sem jogadores suficientes para atualizar a partida." ) ;
You can’t perform that action at this time.
0 commit comments