@@ -1056,39 +1056,57 @@ idrinth.ui = {
10561056 * @returns {Array }
10571057 */
10581058 var buildRaidJoinList = function ( ) {
1059- return [ {
1060- content : idrinth . text . get ( "raids.clickCopy" ) ,
1061- type : 'strong'
1062- } , {
1063- id : 'idrinth-raid-link-list'
1064- } , {
1065- content : idrinth . text . get ( "raids.disableSpecific" ) ,
1066- type : 'strong'
1067- } , {
1068- content : idrinth . text . get ( "raids.disable.none" ) ,
1069- type : 'button' ,
1070- attributes : [
1059+ /**
1060+ *
1061+ * @param {Array } list
1062+ * @param {String } header
1063+ * @returns {object }
1064+ */
1065+ var wrap = function ( list , header ) {
1066+ return {
1067+ children : [
10711068 {
1072- name : 'onclick' ,
1073- value : 'idrinth.tier.allCheck(false)'
1074- } , {
1075- name : 'style' ,
1076- value : 'width:50%;'
1077- } ]
1078- } , {
1079- content : idrinth . text . get ( "raids.disable.all" ) ,
1080- type : 'button' ,
1081- attributes : [
1069+ type : 'strong' ,
1070+ content : idrinth . text . get ( "raids." + header )
1071+ } ,
10821072 {
1083- name : 'onclick' ,
1084- value : 'idrinth.tier.allCheck(true)'
1085- } , {
1086- name : 'style' ,
1087- value : 'width:50%;'
1088- } ]
1089- } , {
1090- id : 'idrinth-raid-may-join-list'
1091- } ] ;
1073+ children : list
1074+ }
1075+ ] ,
1076+ css : 'idrinth-openclick'
1077+ } ;
1078+ } ;
1079+ return [
1080+ wrap ( [ {
1081+ id : 'idrinth-raid-link-list'
1082+ } ] ,
1083+ "clickCopy"
1084+ ) ,
1085+ wrap ( [ {
1086+ content : idrinth . text . get ( "raids.disable.none" ) ,
1087+ type : 'button' ,
1088+ attributes : [
1089+ {
1090+ name : 'onclick' ,
1091+ value : 'idrinth.tier.allCheck(false)'
1092+ } , {
1093+ name : 'style' ,
1094+ value : 'width:50%;'
1095+ } ]
1096+ } , {
1097+ content : idrinth . text . get ( "raids.disable.all" ) ,
1098+ type : 'button' ,
1099+ attributes : [
1100+ {
1101+ name : 'onclick' ,
1102+ value : 'idrinth.tier.allCheck(true)'
1103+ } , {
1104+ name : 'style' ,
1105+ value : 'width:50%;'
1106+ } ]
1107+ } , {
1108+ id : 'idrinth-raid-may-join-list'
1109+ } ] , "disableSpecific" ) ] ;
10921110 } ;
10931111 return makeTabs ( {
10941112 'Actions' : buildActions ( ) ,
0 commit comments