Working on Compatibility for FVTT v10

modified some actor-id to uuid :
dragndrop-actor-id -> dragndrop-actor-uuid
open-sheet-actor-id -> open-sheet-from-uuid
This commit is contained in:
Vlyan
2022-07-22 11:03:08 +02:00
parent dbbde5eeb3
commit 894cdba28b
10 changed files with 33 additions and 31 deletions

View File

@@ -85,10 +85,7 @@ export class ArmyCohortSheetL5r5e extends ItemSheetL5r5e {
html.find(".actor-remove-control").on("click", (event) => {
event.preventDefault();
event.stopPropagation();
const id = $(event.currentTarget).data("actor-id");
if (id) {
this._removeLinkedActor();
}
this._removeLinkedActor();
});
}