diff --git a/static/account_register.js b/static/account_register.js index 356fa87..e6f780a 100644 --- a/static/account_register.js +++ b/static/account_register.js @@ -181,6 +181,13 @@ const AddEditTransactionModal = React.createClass({ }); } }, + handleAddSplit: function() { + this.setState({ + transaction: React.addons.update(this.state.transaction, { + Splits: {$push: [new Split()]} + }) + }); + }, handleDeleteSplit: function(split) { this.setState({ transaction: React.addons.update(this.state.transaction, { @@ -354,6 +361,12 @@ const AddEditTransactionModal = React.createClass({ Amount {splits} + + + +