summaryrefslogtreecommitdiff
path: root/elm/ColSelect.elm
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2019-11-28 11:21:19 +0100
committerYorhel <git@yorhel.nl>2019-11-28 11:21:23 +0100
commit8825bb9df2487057bb65b69df67c93e7d793a37a (patch)
tree0a070d68abd5daf67f1526d5a7be3fa610d1d9c8 /elm/ColSelect.elm
parent4067f0a73a55e898def7320976781a2b8bf6710b (diff)
Use plain links for JS-ified linkradio inputs + fix focus of non-JS linkradios
Kind of backwards to use input elements to display a link when they're backed by Javascript anyway. This also avoids the need to create a unique id for each linkradio element.
Diffstat (limited to 'elm/ColSelect.elm')
-rw-r--r--elm/ColSelect.elm9
1 files changed, 1 insertions, 8 deletions
diff --git a/elm/ColSelect.elm b/elm/ColSelect.elm
index d8be329b..049cc369 100644
--- a/elm/ColSelect.elm
+++ b/elm/ColSelect.elm
@@ -68,14 +68,7 @@ update msg model =
view : Model -> Html Msg
view model =
- let
- item (cid, cname) =
- let selid = "colselect_" ++ cid
- in
- li [ class "linkradio" ]
- [ inputCheck selid (Set.member cid model.sel) (Toggle cid)
- , label [ for selid ] [ text cname ]
- ]
+ let item (cid, cname) = li [ ] [ linkRadio (Set.member cid model.sel) (Toggle cid) [ text cname ] ]
in
DD.view model.dd Api.Normal
(text "Select columns")