From 8f9074bf4a4062282f381cf6a4518b191c66cb15 Mon Sep 17 00:00:00 2001 From: Joris Guyonvarch Date: Sun, 22 Mar 2015 14:22:50 +0100 Subject: Change from button element to div element to prevent space and enter trigger on name and time --- src/View/Timer.elm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/View') diff --git a/src/View/Timer.elm b/src/View/Timer.elm index 100514a..c8b6561 100644 --- a/src/View/Timer.elm +++ b/src/View/Timer.elm @@ -39,7 +39,7 @@ timerView model (id, timer) = nameBlockReadOnly : Id -> Timer -> Html nameBlockReadOnly id timer = - button + div [ class "name block" , onClick (Signal.send updates (Edit id Name)) ] @@ -47,7 +47,7 @@ nameBlockReadOnly id timer = nameBlockEdition : Id -> Timer -> Edition -> Html nameBlockEdition id timer edition = - button + div [ [ (True, "name block edition") , (List.isEmpty edition.chars, "empty") ] @@ -68,7 +68,7 @@ timerName id = Maybe.withDefault ("Timer " ++ toString id) << .name timeBlockReadOnly : Id -> Timer -> Html timeBlockReadOnly id timer = - button + div [ [ (True, "time block") , (timer.state == Ringing, "isRinging") , (timer.state == Running, "isRunning") @@ -84,7 +84,7 @@ timeBlockReadOnly id timer = timeBlockEdition : Timer -> Edition -> Html timeBlockEdition timer edition = let isEmptyEdition = List.isEmpty edition.chars - in button + in div [ [ (True, "time block edition") , (isEmptyEdition, "empty") ] -- cgit v1.2.3