diff --git a/rpg-docs/client/views/character/attacks/attackEdit/attackEdit.js b/rpg-docs/client/views/character/attacks/attackEdit/attackEdit.js index 7d3bd4ac..0e08ce3e 100644 --- a/rpg-docs/client/views/character/attacks/attackEdit/attackEdit.js +++ b/rpg-docs/client/views/character/attacks/attackEdit/attackEdit.js @@ -3,7 +3,7 @@ var damageTypes = ["bludgeoning", "piercing", "slashing", "acid", "cold", "fire" Template.attackEdit.events({ "tap #deleteAttack": function(event, instance){ - Attacks.softRemove(this._id); + Attacks.softRemoveNode(this._id); GlobalUI.deletedToast(this._id, "Attacks", "Attack"); }, "change #attackBonusInput": function(event){ diff --git a/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js b/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js index dcac1daf..06e7095c 100644 --- a/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js +++ b/rpg-docs/client/views/character/effects/effectEdit/effectEdit.js @@ -144,7 +144,7 @@ Template.regularEffectValue.helpers({ Template.effectEdit.events({ "tap #deleteEffect": function(event){ - Effects.softRemove(this._id); + Effects.softRemoveNode(this._id); GlobalUI.deletedToast(this._id, "Effects", "Effect"); }, "core-select #statGroupDropDown": function(event, instance){ diff --git a/rpg-docs/client/views/character/features/featureDialog/featureDialog.js b/rpg-docs/client/views/character/features/featureDialog/featureDialog.js index 75c5f597..7d52ace0 100644 --- a/rpg-docs/client/views/character/features/featureDialog/featureDialog.js +++ b/rpg-docs/client/views/character/features/featureDialog/featureDialog.js @@ -3,7 +3,7 @@ Template.featureDialog.events({ Features.update(instance.data.featureId, {$set: {color: event.color}}); }, "tap #deleteButton": function(event, instance){ - Features.softRemove(instance.data.featureId); + Features.softRemoveNode(instance.data.featureId); GlobalUI.deletedToast(instance.data.featureId, "Features", "Feature"); GlobalUI.closeDetail(); }, diff --git a/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js b/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js index 2b791214..44f7c785 100644 --- a/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js +++ b/rpg-docs/client/views/character/inventory/containerDialog/containerDialog.js @@ -9,13 +9,13 @@ Template.containerDialog.events({ Containers.update(instance.data.containerId, {$set: {color: event.color}}); }, "tap #deleteButton": function(event, instance){ - Containers.softRemove(instance.data.containerId); + Containers.softRemoveNode(instance.data.containerId); GlobalUI.deletedToast(instance.data.containerId, "Containers", "Container and contents"); - GlobalUI.closeDetail() + GlobalUI.closeDetail(); }, //TODO validate input (integer, non-negative, etc) for these inputs and give validation errors "change #containerNameInput, input #containerNameInput": function(event){ - console.log("changed Nameinput") + console.log("changed Nameinput"); var name = Template.instance().find("#containerNameInput").value; Containers.update(this._id, {$set: {name: name}}); }, diff --git a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js index 3962b5b8..dd62da47 100644 --- a/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js +++ b/rpg-docs/client/views/character/inventory/itemDialog/itemDialog.js @@ -19,7 +19,7 @@ Template.itemDialog.events({ Items.update(instance.data.itemId, {$set: {color: event.color}}); }, "tap #deleteButton": function(event, instance){ - Items.softRemove(instance.data.itemId); + Items.softRemoveNode(instance.data.itemId); GlobalUI.deletedToast(instance.data.itemId, "Items", "Item"); GlobalUI.closeDetail(); }, diff --git a/rpg-docs/client/views/character/journal/classDialog/classDialog.js b/rpg-docs/client/views/character/journal/classDialog/classDialog.js index 26b68800..7f69e1df 100644 --- a/rpg-docs/client/views/character/journal/classDialog/classDialog.js +++ b/rpg-docs/client/views/character/journal/classDialog/classDialog.js @@ -1,8 +1,8 @@ Template.classDialog.events({ "tap #deleteButton": function(event, instance){ - Classes.softRemove(instance.data.classId); + Classes.softRemoveNode(instance.data.classId); GlobalUI.deletedToast(instance.data.classId, "Classes", "Class"); - GlobalUI.closeDetail() + GlobalUI.closeDetail(); }, "change #classNameInput": function(event){ var value = event.currentTarget.value; diff --git a/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.js b/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.js index 99dd4a09..2e58c463 100644 --- a/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.js +++ b/rpg-docs/client/views/character/journal/experienceDialog/experienceDialog.js @@ -1,6 +1,6 @@ Template.experienceDialog.events({ "tap #deleteButton": function(event, instance){ - Experiences.softRemove(instance.data.experienceId); + Experiences.softRemoveNode(instance.data.experienceId); GlobalUI.deletedToast(instance.data.experienceId, "Experiences", "Experience"); GlobalUI.closeDetail() }, diff --git a/rpg-docs/client/views/character/journal/noteDialog/noteDialog.js b/rpg-docs/client/views/character/journal/noteDialog/noteDialog.js index 28e35d96..7115c904 100644 --- a/rpg-docs/client/views/character/journal/noteDialog/noteDialog.js +++ b/rpg-docs/client/views/character/journal/noteDialog/noteDialog.js @@ -3,7 +3,7 @@ Template.noteDialog.events({ Notes.update(instance.data.noteId, {$set: {color: event.color}}); }, "tap #deleteButton": function(event, instance){ - Notes.softRemove(instance.data.noteId); + Notes.softRemoveNode(instance.data.noteId); GlobalUI.deletedToast(instance.data.noteId, "Notes", "Note"); GlobalUI.closeDetail() }, diff --git a/rpg-docs/client/views/character/spells/spellDialog/spellDialog.js b/rpg-docs/client/views/character/spells/spellDialog/spellDialog.js index f89452bd..8ee382a3 100644 --- a/rpg-docs/client/views/character/spells/spellDialog/spellDialog.js +++ b/rpg-docs/client/views/character/spells/spellDialog/spellDialog.js @@ -38,7 +38,7 @@ Template.spellDialog.events({ Spells.update(instance.data.spellId, {$set: {color: event.color}}); }, "tap #deleteButton": function(event, instance){ - Spells.softRemove(instance.data.spellId); + Spells.softRemoveNode(instance.data.spellId); GlobalUI.deletedToast(instance.data.spellId, "Spells", "Spell"); GlobalUI.closeDetail() }, diff --git a/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.js b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.js index efeb9bce..fe524255 100644 --- a/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.js +++ b/rpg-docs/client/views/character/spells/spellListDialog/spellListDialog.js @@ -3,7 +3,7 @@ Template.spellListDialog.events({ SpellLists.update(instance.data.spellListId, {$set: {color: event.color}}); }, "tap #deleteButton": function(event, instance){ - SpellLists.softRemove(instance.data.spellListId); + SpellLists.softRemoveNode(instance.data.spellListId); GlobalUI.deletedToast(instance.data.spellListId, "SpellLists", "Spell list and contents"); GlobalUI.closeDetail() },