diff --git a/hledger-api/static/hledger-client.js b/hledger-api/static/hledger-client.js index a80adb554..1d2fe5f59 100644 --- a/hledger-api/static/hledger-client.js +++ b/hledger-api/static/hledger-client.js @@ -17,7 +17,7 @@ function listToTree(list, id_field, parent_field) { } hledger.config(function($stateProvider, $urlRouterProvider) { - $urlRouterProvider.otherwise("/accounts"); + //$urlRouterProvider.otherwise("/"); $stateProvider .state('accounts', { url: "/accounts", @@ -49,3 +49,10 @@ hledger.controller("AccountsController", function($scope, Account) { $scope.accounts = listToTree(data, 'aname', 'aparentname')[0].children; }); }); + +hledger.filter("accountNameNode", function() { + return function(account) { + return account.replace(/^.*:/, ''); + }; +}); + diff --git a/hledger-api/static/index.html b/hledger-api/static/index.html index 55c484763..dccd386c2 100644 --- a/hledger-api/static/index.html +++ b/hledger-api/static/index.html @@ -16,11 +16,12 @@
- + +