Fix edit objets d'un véhicule

Nommage des events homogène
This commit is contained in:
Vincent Vandemeulebrouck
2021-12-11 02:20:20 +01:00
parent 76741579cc
commit e6aebbe8c3
3 changed files with 18 additions and 18 deletions

View File

@ -103,12 +103,12 @@ export class RdDActorVehiculeSheet extends ActorSheet {
if (!this.options.editable) return;
// Update Inventory Item
html.find('.item-edit').click(ev => {
html.find('.item-edit').click(async event => {
const item = RdDSheetUtility.getItem(event, this.actor);
item.sheet.render(true);
});
// Delete Inventory Item
html.find('.item-delete').click(ev => {
html.find('.item-delete').click(async event => {
const li = RdDSheetUtility.getEventElement(event);
RdDUtility.confirmerSuppression(this, li);
});