diff --git a/src/public/js/stocked.js b/src/public/js/stocked.js index d234ef8..efdf94b 100644 --- a/src/public/js/stocked.js +++ b/src/public/js/stocked.js @@ -1636,7 +1636,9 @@ function StockedSetting(name, settingData) { this.lifepaths.push(new StockedLifePath(name, settingData[name])); } } -// StockedSetting.prototype. +StockedSetting.prototype.addLifepath = function() { + this.lifepaths.push(new StockedLifePath(this.newLifepathName, {})); +} function StockedLifePath(name, pathData) { if(pathData) { diff --git a/src/views/partials/stocked.erb b/src/views/partials/stocked.erb index 1ccecf5..2517a3e 100644 --- a/src/views/partials/stocked.erb +++ b/src/views/partials/stocked.erb @@ -252,19 +252,22 @@
- + TODO: Add new lifepath + + Add new lifepath
- - + TODO: Add new setting + Add new setting