This repository was archived by the owner on Mar 29, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -476,12 +476,12 @@ idrinth.tier = {
476476 * @param {Boolean } yes
477477 * @returns {undefined }
478478 */
479- allCheck : function ( yes ) {
480- var boxes = document . getElementById ( 'idrinth-raid-may-join-list' ) . getElementsByTagName ( 'input' ) ;
481- for ( var counter = boxes . length - 1 ; counter >= 0 ; counter -- ) {
482- if ( boxes [ counter ] . getAttribute ( 'type' ) === 'checkbox' && boxes [ counter ] . checked !== yes ) {
479+ allCheck : function ( yes ) {
480+ var boxes = document . getElementById ( 'idrinth-raid-may-join-list' ) . getElementsByTagName ( 'input' ) ;
481+ for ( var counter = boxes . length - 1 ; counter >= 0 ; counter -- ) {
482+ if ( boxes [ counter ] . getAttribute ( 'type' ) === 'checkbox' && boxes [ counter ] . checked !== yes ) {
483483 boxes [ counter ] . checked = yes ;
484- idrinth . settings . change ( boxes [ counter ] . getAttribute ( 'name' ) , yes ) ;
484+ idrinth . settings . change ( boxes [ counter ] . getAttribute ( 'name' ) , yes ) ;
485485 }
486486 }
487487 }
Original file line number Diff line number Diff line change @@ -1067,11 +1067,25 @@ idrinth.ui = {
10671067 } , {
10681068 content : idrinth . text . get ( "raids.disable.none" ) ,
10691069 type : 'button' ,
1070- attributes : [ { name :'onclick' , value :'idrinth.tier.allCheck(false)' } ]
1070+ attributes : [
1071+ {
1072+ name : 'onclick' ,
1073+ value : 'idrinth.tier.allCheck(false)'
1074+ } , {
1075+ name : 'style' ,
1076+ value : 'width:50%;'
1077+ } ]
10711078 } , {
10721079 content : idrinth . text . get ( "raids.disable.all" ) ,
10731080 type : 'button' ,
1074- attributes : [ { name :'onclick' , value :'idrinth.tier.allCheck(false)' } ]
1081+ attributes : [
1082+ {
1083+ name : 'onclick' ,
1084+ value : 'idrinth.tier.allCheck(true)'
1085+ } , {
1086+ name : 'style' ,
1087+ value : 'width:50%;'
1088+ } ]
10751089 } , {
10761090 id : 'idrinth-raid-may-join-list'
10771091 } ] ;
You can’t perform that action at this time.
0 commit comments