diff --git a/module/actor-sheet.js b/module/actor-sheet.js index 1163025a..0108d369 100644 --- a/module/actor-sheet.js +++ b/module/actor-sheet.js @@ -137,7 +137,7 @@ export class RdDActorSheet extends ActorSheet { RdDSheetUtility.splitItem(item, this.actor); }); this.html.find('.item-edit').click(async event => RdDSheetUtility.getItem(event, this.actor)?.sheet.render(true)) - this.html.find('.item-delete').click(async event => RdDUtility.confirmerSuppressionItem(this, RdDSheetUtility.getItem(event, this.actor))); + this.html.find('.item-delete').click(async event => RdDUtility.confirmActorItemDelete(this, RdDSheetUtility.getItem(event, this.actor))); this.html.find('.item-vendre').click(async event => RdDSheetUtility.getItem(event, this.actor)?.proposerVente()); this.html.find('.item-montrer').click(async event => RdDSheetUtility.getItem(event, this.actor)?.postItem()); this.html.find('.item-action').click(async event => RdDSheetUtility.getItem(event, this.actor)?.actionPrincipale(this.actor)); diff --git a/module/item-sheet.js b/module/item-sheet.js index 90ad5eb7..27c1ebb8 100644 --- a/module/item-sheet.js +++ b/module/item-sheet.js @@ -209,7 +209,7 @@ export class RdDItemSheet extends ItemSheet { this.html.find('.item-split').click(async event => RdDSheetUtility.splitItem(RdDSheetUtility.getItem(event, this.actor), this.actor, async () => this.render(true))); this.html.find('.item-edit').click(async event => RdDSheetUtility.getItem(event, this.actor)?.sheet.render(true)); - this.html.find('.item-delete').click(async event => RdDUtility.confirmerSuppressionItem(this, RdDSheetUtility.getItem(event, this.actor))); + this.html.find('.item-delete').click(async event => RdDUtility.confirmActorItemDelete(this, RdDSheetUtility.getItem(event, this.actor))); this.html.find('.item-vendre').click(async event => RdDSheetUtility.getItem(event, this.actor)?.proposerVente()); this.html.find('.item-montrer').click(async event => RdDSheetUtility.getItem(event, this.actor)?.postItem()); this.html.find('.item-action').click(async event => RdDSheetUtility.getItem(event, this.actor)?.actionPrincipale(this.actor, async () => this.render(true))); diff --git a/module/rdd-utility.js b/module/rdd-utility.js index 59e9f7a3..ec3fdc30 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -947,7 +947,7 @@ export class RdDUtility { } /* -------------------------------------------- */ - static async confirmerSuppressionItem(sheet, item, htmlToDelete) { + static async confirmActorItemDelete(sheet, item, htmlToDelete) { const itemId = item.id; const confirmationSuppression = { settingConfirmer: "confirmation-supprimer-" + item.getItemGroup(),