Merge branch 'master' into 'live'

Ajax'ed authpreds

See merge request !106
This commit is contained in:
Gregor Kleen 2018-11-22 22:45:16 +01:00
commit 076e8e2f34
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}