diff options
Diffstat (limited to 'elm/User/Edit.elm')
-rw-r--r-- | elm/User/Edit.elm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elm/User/Edit.elm b/elm/User/Edit.elm index 1a9b9a55..df1647e4 100644 --- a/elm/User/Edit.elm +++ b/elm/User/Edit.elm @@ -124,7 +124,7 @@ update msg model = Submit -> if model.cpass && model.pass1 /= model.pass2 then ({ model | passNeq = True }, Cmd.none ) - else ({ model | state = Api.Loading }, Api.post "/u/edit" (GUE.encode model.data) Submitted) + else ({ model | state = Api.Loading }, Api.post "/u/edit.json" (GUE.encode model.data) Submitted) -- TODO: This reload is only necessary for the skin and customcss options to apply, but it's nicer to do that directly from JS. Submitted GApi.Success -> (model, load <| "/u" ++ String.fromInt model.data.id ++ "/edit") |