From 314ce8541012cf4022383212ba88c8d21bfb07ad Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Wed, 17 Jun 2015 09:05:23 +0200 Subject: [PATCH] Attacks can now be added to spells --- rpg-docs/client/globalHelpers/openParentDialog.js | 5 +++++ .../views/character/spells/spellDialog/spellDialog.html | 2 ++ 2 files changed, 7 insertions(+) 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 @@
{{evaluateString charId description}}
+ {{> attacksViewList charId=charId parentId=_id}} \ No newline at end of file