Autoformat

This commit is contained in:
Vincent Vandemeulebrouck 2022-01-01 14:01:41 +01:00
parent 25420cb481
commit bb1d03c8a4
6 changed files with 24 additions and 23 deletions

View File

@ -135,6 +135,7 @@ export class RdDActorSheet extends ActorSheet {
this.actor.addSubacteur(dragData.id || dragData.data._id);
super._onDropActor(event, dragData);
}
/* -------------------------------------------- */
async _onDropItem(event, dragData) {
const destItemId = RdDSheetUtility.getItemId(event);

View File

@ -70,7 +70,7 @@ export class RdDActorVehiculeSheet extends ActorSheet {
/* -------------------------------------------- */
async _onDropItem(event, dragData) {
const destItemId = RdDSheetUtility.getItemId(event);
const destItemId = $(event.target)?.closest('.item').attr('data-item-id');
const dropParams = RdDSheetUtility.prepareItemDropParameters(destItemId, this.actor.id, dragData, this.objetVersConteneur);
const callSuper = await this.actor.processDropItem(dropParams);
if (callSuper) {

View File

@ -339,7 +339,7 @@ export class RdDUtility {
}
/* -------------------------------------------- */
static initAfficheContenu(actorId) { // persistent handling of conteneur show/hide
static initAfficheContenu() { // persistent handling of conteneur show/hide
if (!this.afficheContenu)
this.afficheContenu = {};
}