Ajax'ed authpreds

This commit is contained in:
Gregor Kleen 2018-11-22 22:18:39 +01:00
parent 58ed6b87a3
commit 179f003c32
2 changed files with 4 additions and 4 deletions

View File

@ -290,11 +290,11 @@ postAuthPredsR = do
<$> funcForm taForm (fslI MsgActiveAuthTags) True
<* submitButton
formResult authActiveRes $ \authTagActive -> do
formResultModal authActiveRes AuthPredsR $ \authTagActive -> do
setSessionJson SessionActiveAuthTags authTagActive
addMessageI Success MsgAuthPredsActiveChanged
redirect AuthPredsR
tell . pure =<< messageI Success MsgAuthPredsActiveChanged
defaultLayout $ do
setTitleI MsgAuthPredsActive
isModal <- hasCustomHeader HeaderIsModal
$(widgetFile "authpreds")

View File

@ -1,2 +1,2 @@
<form method=post action=@{AuthPredsR} enctype=#{authActiveEnctype}>
<form method=post action=@{AuthPredsR} enctype=#{authActiveEnctype} :isModal:data-ajax-submit>
^{authActiveWidget}