Skip to content

Commit

Permalink
How do I move on from here?
Browse files Browse the repository at this point in the history
  • Loading branch information
passy committed Apr 19, 2015
1 parent eaff56d commit 7bc447b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/ajax/Main.purs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ ui = component (render <$> stateful (State false exampleCode Nothing) update)
, Tuple "height" "200px"
])
] [] ]
, H.p_ [ H.button [ A.classes [B.btn, B.btnPrimary]
, A.disabled busy
, A.onclick (\_ -> pure (handler code))
] [ H.text "Compile" ] ]
, H.p_ [ H.a [ A.classes [B.btn, B.btnPrimary]
, A.href "#compile"
, A.disabled busy
, A.onclick (\_ -> E.preventDefault $> pure (handler code))
] [ H.text "Compile" ] ]
, H.p_ [ H.text (if busy then "Working..." else "") ]
] ++ flip foldMap result \js ->
[ H.div [ A.initializer initialized, A.finalizer finalized ]
Expand Down

0 comments on commit 7bc447b

Please sign in to comment.