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

Commit

Permalink
wrapping raid-tab parts
Browse files Browse the repository at this point in the history
  • Loading branch information
Idrinth committed Apr 24, 2017
1 parent fe2b12a commit c339bea
Showing 1 changed file with 49 additions and 31 deletions.
80 changes: 49 additions & 31 deletions src/mods/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1056,39 +1056,57 @@ idrinth.ui = {
* @returns {Array}
*/
var buildRaidJoinList = function () {
return [ {
content: idrinth.text.get ( "raids.clickCopy" ),
type: 'strong'
}, {
id: 'idrinth-raid-link-list'
}, {
content: idrinth.text.get ( "raids.disableSpecific" ),
type: 'strong'
}, {
content: idrinth.text.get ( "raids.disable.none" ),
type: 'button',
attributes: [
/**
*
* @param {Array} list
* @param {String} header
* @returns {object}
*/
var wrap = function ( list, header ) {
return {
children: [
{
name: 'onclick',
value: 'idrinth.tier.allCheck(false)'
}, {
name: 'style',
value: 'width:50%;'
} ]
}, {
content: idrinth.text.get ( "raids.disable.all" ),
type: 'button',
attributes: [
type: 'strong',
content: idrinth.text.get ( "raids." + header )
},
{
name: 'onclick',
value: 'idrinth.tier.allCheck(true)'
}, {
name: 'style',
value: 'width:50%;'
} ]
}, {
id: 'idrinth-raid-may-join-list'
} ];
children: list
}
],
css: 'idrinth-openclick'
};
};
return [
wrap ( [ {
id: 'idrinth-raid-link-list'
} ],
"clickCopy"
),
wrap ( [ {
content: idrinth.text.get ( "raids.disable.none" ),
type: 'button',
attributes: [
{
name: 'onclick',
value: 'idrinth.tier.allCheck(false)'
}, {
name: 'style',
value: 'width:50%;'
} ]
}, {
content: idrinth.text.get ( "raids.disable.all" ),
type: 'button',
attributes: [
{
name: 'onclick',
value: 'idrinth.tier.allCheck(true)'
}, {
name: 'style',
value: 'width:50%;'
} ]
}, {
id: 'idrinth-raid-may-join-list'
} ], "disableSpecific" ) ];
};
return makeTabs ( {
'Actions': buildActions (),
Expand Down

0 comments on commit c339bea

Please sign in to comment.