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.
This commit is contained in:
parent
834fef7389
commit
8d1ceb00f5
@ -319,7 +319,7 @@ addform _ vd@VD{..} = [hamlet|
|
|||||||
|
|
||||||
enableTypeahead(jQuery('input#date'), datesSuggester);
|
enableTypeahead(jQuery('input#date'), datesSuggester);
|
||||||
enableTypeahead(jQuery('input#description'), descriptionsSuggester);
|
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
|
descriptions = sort $ nub $ map tdescription $ jtxns j
|
||||||
accts = sort $ journalAccountNamesUsed j
|
accts = sort $ journalAccountNamesUsed j
|
||||||
listToJsonValueObjArrayStr as = preEscapedString $ encode $ JSArray $ map (\a -> JSObject $ toJSObject [("value", showJSON a)]) as
|
listToJsonValueObjArrayStr as = preEscapedString $ encode $ JSArray $ map (\a -> JSObject $ toJSObject [("value", showJSON a)]) as
|
||||||
numpostings = 2
|
numpostings = 4
|
||||||
postingnums = [1..numpostings]
|
postingnums = [1..numpostings]
|
||||||
postingfields :: ViewData -> Int -> HtmlUrl AppRoute
|
postingfields :: ViewData -> Int -> HtmlUrl AppRoute
|
||||||
postingfields _ n = [hamlet|
|
postingfields _ n = [hamlet|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user