Skip to content
Permalink
Browse files

Fix update fun

  • Loading branch information...
xafizoff committed Apr 29, 2019
1 parent ef449d6 commit b771a316b4aebda9546a1c292b4e788eea86774c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Web/Nitro/Internal.hs
@@ -27,7 +27,7 @@ wire r = do
update :: (NITRO m, B.Serialize a) => BS.ByteString -> [Element a] -> m ()
update target elems = do
(content,js) <- render_ elems
addAction $ "(function(){qi('" <> target <> "').outerHTML='" <> content <> "';}();" <> js
addAction $ "(function(){qi('" <> target <> "').outerHTML='" <> content <> "';})();" <> js

-- | Update text content of the element with the specified @id@
updateText :: (NITRO m) => BS.ByteString -> T.Text -> m ()

0 comments on commit b771a31

Please sign in to comment.
You can’t perform that action at this time.