Allow event listeners for item sheets when the item is embedded
This commit is contained in:
parent
10dcec3bd7
commit
134b13756a
3 changed files with 0 additions and 3 deletions
|
|
@ -15,7 +15,6 @@ export class AspectSheet extends ItemSheet {
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
|
|
||||||
if (this.document.isEmbedded) return;
|
|
||||||
if (!this.isEditable) return;
|
if (!this.isEditable) return;
|
||||||
console.debug(`.dungeon | Adding event listeners for Item: ${this.id}`);
|
console.debug(`.dungeon | Adding event listeners for Item: ${this.id}`);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,6 @@ export class GenericItemSheet extends ItemSheet {
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
|
|
||||||
if (this.document.isEmbedded) return;
|
|
||||||
if (!this.isEditable) return;
|
if (!this.isEditable) return;
|
||||||
console.debug(`.dungeon | Adding event listeners for Generic Item: ${this.id}`);
|
console.debug(`.dungeon | Adding event listeners for Generic Item: ${this.id}`);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ export class SpellSheet extends GenericItemSheet {
|
||||||
activateListeners(html) {
|
activateListeners(html) {
|
||||||
super.activateListeners(html);
|
super.activateListeners(html);
|
||||||
|
|
||||||
if (this.document.isEmbedded) return;
|
|
||||||
if (!this.isEditable) return;
|
if (!this.isEditable) return;
|
||||||
console.debug(`.dungeon | Adding event listeners for Generic Item: ${this.id}`);
|
console.debug(`.dungeon | Adding event listeners for Generic Item: ${this.id}`);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue