Encore des fix OwnedItem / item.data

This commit is contained in:
Vincent Vandemeulebrouck 2021-03-30 00:02:51 +02:00
parent ba41886522
commit 86fb6111db
2 changed files with 4 additions and 4 deletions

View File

@ -407,19 +407,19 @@ export class RdDActorSheet extends ActorSheet {
// Display info about queue // Display info about queue
html.find('.queuesouffle-label a').click((event) => { html.find('.queuesouffle-label a').click((event) => {
let myID = event.currentTarget.attributes['data-item-id'].value; let myID = event.currentTarget.attributes['data-item-id'].value;
const item = this.actor.getOwnedItem(myID); const item = this.actor.getEmbeddedDocuments('Item', myID);
item.sheet.render(true); item.sheet.render(true);
}); });
// Info sort // Info sort
html.find('.sort-label a').click((event) => { html.find('.sort-label a').click((event) => {
let myID = event.currentTarget.attributes['data-id'].value; let myID = event.currentTarget.attributes['data-id'].value;
const item = this.actor.getOwnedItem(myID); const item = this.actor.getEmbeddedDocuments('Item', myID);
item.sheet.render(true); item.sheet.render(true);
}); });
// Info sort // Info sort
html.find('.case-label a').click((event) => { html.find('.case-label a').click((event) => {
let myID = event.currentTarget.attributes['data-id'].value; let myID = event.currentTarget.attributes['data-id'].value;
const item = this.actor.getOwnedItem(myID); const item = this.actor.getEmbeddedDocuments('Item', myID);
item.sheet.render(true); item.sheet.render(true);
}); });

View File

@ -11,7 +11,7 @@
<div class="form-group"> <div class="form-group">
<label class="alchimie-title" for="xp">Type</label> <label class="alchimie-title" for="xp">Type</label>
<select name="data.type" data-dtype="String"> <select name="data.type" data-dtype="String">
{{#select item.data.type}} {{#select data.type}}
<option value="recreative">Récréative</option> <option value="recreative">Récréative</option>
<option value="soliste">Soliste</option> <option value="soliste">Soliste</option>
{{/select}} {{/select}}