WIP on htmx 4; change target from window to body (#60)

This commit is contained in:
2026-07-14 19:55:55 -04:00
parent e8ee236c1e
commit 76f0506de7
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -13,7 +13,7 @@ let edit (model: EditUserModel) app =
div [ _class "col-12" ] [
h5 [ _class "my-3" ] [ txt app.PageTitle ]
form [ _hxPost (relUrl app "admin/settings/user/save"); _method "post"; _class "container"
_hxTarget "#user_panel"; _hxSwap $"{HxSwap.OuterHtml} show:top showTarget:window" ] [
_hxTarget "#user_panel"; _hxSwap $"{HxSwap.OuterHtml} show:top showTarget:body" ] [
antiCsrf app
input [ _type "hidden"; _name "Id"; _value model.Id ]
div [ _class "row" ] [
@@ -188,7 +188,7 @@ let userList (model: WebLogUser list) app =
]
List.map userDetail model
|> div [ _class "container g-0"; hxInherited (_hxTarget "#user_panel")
hxInherited (_hxSwap $"{HxSwap.OuterHtml} show:top showTarget:window") ]
hxInherited (_hxSwap $"{HxSwap.OuterHtml} show:top showTarget:body") ]
]
]
|> List.singleton