From e0209df270c334083fda04f10c48c2589dfa3e9c Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Fri, 24 Apr 2015 12:15:50 +0200 Subject: [PATCH] Features now always enabled by default --- .../features/featureDialog/featureDialog.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/rpg-docs/client/views/character/features/featureDialog/featureDialog.js b/rpg-docs/client/views/character/features/featureDialog/featureDialog.js index cb3e78c6..6c0b85a4 100644 --- a/rpg-docs/client/views/character/features/featureDialog/featureDialog.js +++ b/rpg-docs/client/views/character/features/featureDialog/featureDialog.js @@ -55,9 +55,15 @@ Template.featureEdit.helpers({ return _.isString(this.uses); }, enabledSelection: function(){ - if (!this.enabled) return "disabled"; - if (this.alwaysEnabled) return "alwaysEnabled"; - return "enabled"; + if (this.enabled){ + if (this.alwaysEnabled){ + return "alwaysEnabled"; + } else { + return "enabled"; + } + } else if (this.enabled === false){ //make sure it is false, not just falsey + return "disabled"; + } }, });