Roll shields
This commit is contained in:
@ -89,6 +89,17 @@ export class TeDeumCharacterCreator {
|
||||
},
|
||||
rejectClose: false, // Click on Close button will not launch an error
|
||||
render: (event, dialog) => {
|
||||
$(".stage-selector").change(event => {
|
||||
let stageId = event.target.value
|
||||
let stage = context.choices.find(item => item.id === stageId)
|
||||
let link = `<a class="content-link" draggable="true" data-link=""
|
||||
data-uuid="Compendium.fvtt-te-deum.education.Item.${stageId}" data-id="${stageId}" data-type="Item"
|
||||
data-pack="fvtt-te-deum.education" data-tooltip="Education Objet"><i class="fas fa-suitcase"></i>${stage.name}</a>`
|
||||
$(".stage-main-details").html(`Voir le détail : ${link}`)
|
||||
})
|
||||
|
||||
document.getElementById("stage-selector").dispatchEvent(new Event('change'))
|
||||
|
||||
}
|
||||
})
|
||||
return choiceResult
|
||||
|
Reference in New Issue
Block a user