diff --git a/rpg-docs/client/globalHelpers/openParentDialog.js b/rpg-docs/client/globalHelpers/openParentDialog.js index 0d09dec3..7f1528a2 100644 --- a/rpg-docs/client/globalHelpers/openParentDialog.js +++ b/rpg-docs/client/globalHelpers/openParentDialog.js @@ -20,6 +20,11 @@ openParentDialog = function(parent, charId, heroId) { template: "itemDialog", data: {itemId: parent.id}, }; + } else if (parent.collection === "Spells") { + detail = { + template: "spellDialog", + data: {spellId: parent.id}, + }; } detail.heroId = heroId; detail.charId = charId; diff --git a/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html b/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html index 155184db..68552057 100644 --- a/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html +++ b/rpg-docs/client/views/character/spells/spellDialog/spellDialog.html @@ -27,6 +27,7 @@