File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -290,8 +290,8 @@ function write() {
290290 let newBox = document . createElement ( "input" ) ;
291291 newBox . type = "radio" ;
292292 newBox . classList . add ( "box" ) ;
293+ newBox . classList . add ( "disabled" ) ;
293294 newBox . id = player . name + "_box" ;
294- newBox . disabled = true ;
295295 newBox . name = "distrib" ;
296296 if ( player . distrib === 1 ) {
297297 newBox . checked = true ;
@@ -468,11 +468,11 @@ function write() {
468468 function boxModif ( ) {
469469 if ( document . getElementById ( "boxDistribModif" ) . checked === false ) {
470470 for ( let player of players ) {
471- document . getElementById ( player . name + "_box" ) . disabled = true ;
471+ document . getElementById ( player . name + "_box" ) . classList . add ( " disabled" ) ;
472472 }
473473 } else {
474474 for ( let player of players ) {
475- document . getElementById ( player . name + "_box" ) . disabled = false ;
475+ document . getElementById ( player . name + "_box" ) . classList . remove ( " disabled" ) ;
476476 }
477477 }
478478 }
Original file line number Diff line number Diff line change 9797 height : 20px ;
9898 width : 20px ;
9999 align-content : center;
100+ pointer-events : all;
101+ }
102+
103+ .disabled {
104+ pointer-events : none;
100105}
101106
102107input {
You can’t perform that action at this time.
0 commit comments