Commit 3747916 1 parent 8097639 commit 3747916 Copy full SHA for 3747916
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 @@ -124,7 +124,7 @@ <h1>Histórico de Partidas</h1>
124
124
src ="https://code.jquery.com/jquery-3.7.1.min.js "
125
125
integrity ="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo= "
126
126
crossorigin ="anonymous "> </ script >
127
- < script src ="./index.js?v=8 "> </ script >
127
+ < script src ="./index.js?v=9 "> </ script >
128
128
< script >
129
129
if ( 'serviceWorker' in navigator ) {
130
130
navigator . serviceWorker . register ( './serviceWorker.js' , { scope : '/peladaManager/' } ) ;
Original file line number Diff line number Diff line change @@ -256,6 +256,9 @@ $("#start-match-day").click(function() {
256
256
$ ( "#update-match-day" ) . click ( function ( ) {
257
257
maxPoints = parseInt ( $ ( "#max-points" ) . val ( ) ) ;
258
258
playersPerTeam = $ ( "#players-per-team" ) . val ( ) ;
259
+
260
+ if ( $ ( "#auto-switch-teams" ) . is ( ":checked" ) ) autoSwitchTeamsPoints = parseInt ( $ ( "#auto-switch-teams-points" ) . val ( ) ) ;
261
+ else autoSwitchTeamsPoints = 0 ;
259
262
260
263
if ( playersPerTeam * 2 > players . length ) {
261
264
alert ( "Sem jogadores suficientes para atualizar a partida." ) ;
You can’t perform that action at this time.
0 commit comments