hledger-web: Clear the form when clicking 'Add a transaction' (just like the shortcut)

This commit is contained in:
Carlos Lopez-Camey 2015-05-25 21:25:50 -06:00
parent d14941ab4d
commit c79396e662

View File

@ -34,7 +34,7 @@ getJournalR = do
hledgerLayout vd "journal" [hamlet| hledgerLayout vd "journal" [hamlet|
<h2#contenttitle>#{title} <h2#contenttitle>#{title}
<!-- p>Journal entries record movements of commodities between accounts. --> <!-- p>Journal entries record movements of commodities between accounts. -->
<a#addformlink role="button" style="cursor:pointer;" data-toggle="modal" data-target="#addmodal" title="Add a new transaction to the journal" style="margin-top:1em;">Add a transaction <a#addformlink role="button" style="cursor:pointer;" onClick="addformReset(true);" data-toggle="modal" data-target="#addmodal" title="Add a new transaction to the journal" style="margin-top:1em;">Add a transaction
^{maincontent} ^{maincontent}
|] |]