From 8d1ceb00f5aedffd018379842b19c0853128ec4a Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 14 Aug 2014 00:55:51 -0700 Subject: [PATCH] web: increase initial add form postings to four We can't enable typeahead in dynamically added postings currently, so increase the number of postings shown initially. --- hledger-web/Foundation.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hledger-web/Foundation.hs b/hledger-web/Foundation.hs index 44a0828e0..ca2a66505 100644 --- a/hledger-web/Foundation.hs +++ b/hledger-web/Foundation.hs @@ -319,7 +319,7 @@ addform _ vd@VD{..} = [hamlet| enableTypeahead(jQuery('input#date'), datesSuggester); enableTypeahead(jQuery('input#description'), descriptionsSuggester); - enableTypeahead(jQuery('input#account1, input#account2'), accountsSuggester); + enableTypeahead(jQuery('input#account1, input#account2, input#account3, input#account4'), accountsSuggester); }); @@ -345,7 +345,7 @@ addform _ vd@VD{..} = [hamlet| descriptions = sort $ nub $ map tdescription $ jtxns j accts = sort $ journalAccountNamesUsed j listToJsonValueObjArrayStr as = preEscapedString $ encode $ JSArray $ map (\a -> JSObject $ toJSObject [("value", showJSON a)]) as - numpostings = 2 + numpostings = 4 postingnums = [1..numpostings] postingfields :: ViewData -> Int -> HtmlUrl AppRoute postingfields _ n = [hamlet|