]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commit
poll: Added postvote and posttrail options for better multi-page polls.
authorJoey Hess <joeyh@joeyh.name>
Mon, 26 Nov 2018 17:14:21 +0000 (13:14 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 26 Nov 2018 17:14:21 +0000 (13:14 -0400)
commit97d921ca676d51279b9fdfbaa7501fc8ebf8a027
treec0a822a7205bf701a71251fb39b4af2b1c91d684
parent11d5b5c5ea6193e6c6f219b021883a6424b23d38
poll: Added postvote and posttrail options for better multi-page polls.

Modern web users probably expect the poll to move on automatically to the
next question, and this allows for that behavior.

Note that bestlink() runs at vote time, which avoids needing to make the
page containing the poll depend on the page that sets up a trail, as the
current trail at vote time will be used.

This commit was sponsored by Eric Drechsel on Patreon.
CHANGELOG
IkiWiki/Plugin/poll.pm
doc/ikiwiki/directive/poll.mdwn