#6 Suppression des sorts
This commit is contained in:
parent
4bc6434fda
commit
bb82f139eb
@ -133,14 +133,15 @@ export class RdDActorSheet extends ActorSheet {
|
||||
// Update Inventory Item
|
||||
html.find('.item-edit').click(ev => {
|
||||
const li = $(ev.currentTarget).parents(".item");
|
||||
const item = this.actor.getOwnedItem(li.data("itemId"));
|
||||
const item = this.actor.getOwnedItem(li.data("item-id"));
|
||||
item.sheet.render(true);
|
||||
});
|
||||
|
||||
// Delete Inventory Item
|
||||
html.find('.item-delete').click(ev => {
|
||||
const li = $(ev.currentTarget).parents(".item");
|
||||
this.actor.deleteOwnedItem(li.data("itemId"));
|
||||
this.actor.deleteOwnedItem(li.data("item-id"));
|
||||
console.log("Delete item :", li.data("item-id") );
|
||||
li.slideUp(200, () => this.render(false));
|
||||
});
|
||||
|
||||
@ -170,7 +171,7 @@ export class RdDActorSheet extends ActorSheet {
|
||||
// Equip Inventory Item
|
||||
html.find('.item-equip').click(ev => {
|
||||
const li = $(ev.currentTarget).parents(".item");
|
||||
this.actor.equiperObjet(li.data("itemId"));
|
||||
this.actor.equiperObjet(li.data("item-id"));
|
||||
this.render(true);
|
||||
});
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
"name": "foundryvtt-reve-de-dragon",
|
||||
"title": "Rêve de Dragon",
|
||||
"description": "Rêve de Dragon RPG for FoundryVTT",
|
||||
"version": "0.9.21",
|
||||
"version": "0.9.22",
|
||||
"minimumCoreVersion": "0.6.0",
|
||||
"compatibleCoreVersion": "0.7.5",
|
||||
"templateVersion": 38,
|
||||
|
@ -404,8 +404,12 @@
|
||||
<span><strong>Sorts:</strong></span>
|
||||
<ol class="item-list">
|
||||
{{#each data.sorts as |mysort key|}}
|
||||
<li class="item flexrow" data-attribute={{key}}>
|
||||
<span class="sort-label"> <a data-id="{{mysort._id}}">{{mysort.name}}</a></span> <span>{{mysort.data.draconic}} - {{mysort.data.difficulte}}</span>
|
||||
<li class="item flexrow" data-item-id="{{mysort._id}}" data-attribute="{{key}}">
|
||||
<span class="sort-label"> <a data-id="{{mysort._id}}">{{mysort.name}}</a></span>
|
||||
<span>{{mysort.data.draconic}} / {{mysort.data.difficulte}}</span>
|
||||
<div class="item-controls">
|
||||
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
|
@ -55,7 +55,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -31,7 +31,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -43,7 +43,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -39,7 +39,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -23,7 +23,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -19,7 +19,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -15,7 +15,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -55,7 +55,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -27,7 +27,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
@ -11,7 +11,7 @@
|
||||
<header class="header-field">
|
||||
<span>Description : </span>
|
||||
</header>
|
||||
<div class="form-group" style="height:200px">
|
||||
<div class="form-group editor" style="height:200px">
|
||||
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
|
||||
</div>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user