Merge branch 'v1.5-fix-drop-on-conteneur' into 'v1.5'
V1.5 fix drop on conteneur See merge request LeRatierBretonnien/foundryvtt-reve-de-dragon!308
This commit is contained in:
commit
5715c7aa72
@ -135,9 +135,10 @@ 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);
|
||||
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) {
|
||||
|
@ -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) {
|
||||
|
@ -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 = {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user