Skip to content
This repository was archived by the owner on Mar 29, 2021. It is now read-only.

Commit 6f51f96

Browse files
committed
formatting and code fixes
1 parent fe12f6e commit 6f51f96

2 files changed

Lines changed: 21 additions & 7 deletions

File tree

src/mods/tier.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

src/mods/ui.js

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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
} ];

0 commit comments

Comments
 (0)