From 24cc4fd2b1193fb93652c441d78d05225591e3ed Mon Sep 17 00:00:00 2001 From: Jacob Date: Tue, 18 Jul 2017 23:01:14 +0100 Subject: [PATCH] Background proficiencies now correctly open background dialog Previously, when clicking on non-skill proficiencies from a character's background, it would open a blank rectangle as its parent dialog. Now, it correctly opens the Background dialog. --- .../proficiencyListItem/proficiencyListItem.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/rpg-docs/client/views/character/proficiencies/proficiencyListItem/proficiencyListItem.js b/rpg-docs/client/views/character/proficiencies/proficiencyListItem/proficiencyListItem.js index 55744233..6b667474 100644 --- a/rpg-docs/client/views/character/proficiencies/proficiencyListItem/proficiencyListItem.js +++ b/rpg-docs/client/views/character/proficiencies/proficiencyListItem/proficiencyListItem.js @@ -15,6 +15,22 @@ Template.proficiencyListItem.helpers({ Template.proficiencyListItem.events({ "click .proficiency": function(event, instance){ + if (this.parent.collection == "Characters") { + if (this.parent.group == "background") { + pushDialogStack({ + template: "backgroundDialog", + data: { + "charId": this.charId, + "field":"background", + "title":"Background", + "color":"j", + }, + element: event.currentTarget, + }) + return; + } + } + openParentDialog({ parent: this.parent, charId: this.charId,