From 57cb2f33a78a2b30e7bdb60d82aaa54842da431b Mon Sep 17 00:00:00 2001 From: Joris Date: Wed, 16 Sep 2015 20:45:01 +0200 Subject: Stop the undo button of the income form to submit --- src/client/View/LoggedIn/Account.elm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/View/LoggedIn/Account.elm b/src/client/View/LoggedIn/Account.elm index 253647a..7e383f3 100644 --- a/src/client/View/LoggedIn/Account.elm +++ b/src/client/View/LoggedIn/Account.elm @@ -110,7 +110,9 @@ incomeEdition model account edition = ] [] , button - [ class "validateIncomeEdition" ] + [ type' "submit" + , class "validateIncomeEdition" + ] [ text (getMessage "Validate" model.translations) ] , toggleIncomeEdition "undoIncomeEdition" (getMessage "Undo" model.translations) , case edition.error of @@ -121,7 +123,8 @@ incomeEdition model account edition = toggleIncomeEdition : String -> String -> Html toggleIncomeEdition className name = button - [ class className + [ type' "button" + , class className , onClick actions.address (UpdateLoggedIn << UpdateAccount <| ToggleIncomeEdition) ] [ text name ] -- cgit v1.2.3