Skip to content

Commit

Permalink
onsubmit-js
Browse files Browse the repository at this point in the history
  • Loading branch information
vii committed Mar 12, 2010
1 parent ac8d84d commit e9efa2b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/webapp/actions.lisp
Expand Up @@ -59,6 +59,7 @@
(list* name default keys))))
lambda-list)
,@body)))
onsubmit-js
(async t)
(sync-fallback t)
after-submit-js)
Expand Down Expand Up @@ -89,8 +90,9 @@
,input))
(t input))))))))
`(<form
,@(when async
`(:onsubmit (js-attrib (return (let ((async-submit-success (async-submit-form this))) ,@after-submit-js async-submit-success)))))
,@(when (or async onsubmit-js)
`(:onsubmit
,(or onsubmit-js `(js-attrib (return (let ((async-submit-success (async-submit-form this))) ,@after-submit-js async-submit-success))))))
:method :post
,@(when sync-fallback
`(:action ,action-link))
Expand Down

0 comments on commit e9efa2b

Please sign in to comment.