Permalink
Browse files

Fix cancelling events through the web form.

  • Loading branch information...
1 parent 1b1cf9a commit 6d0b9f0a0dae2f9b025f851b5d2c8197bee1acc4 @jeresig committed Mar 8, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −2 index.cgi
  2. +1 −0 wtpa-bot.pl
View
@@ -75,9 +75,9 @@ foreach my $event ( @WTPA::events ) {
$toUpdate .= qq~<li><span class="date">$nice_date $nice_time:</span> $namePlace
<span class='buttons'>
<input type='button' value='Update' class="update"/>
- <form action="" method="POST" class="cance">
+ <form action="" method="POST" class="cancel">
<input type="hidden" name="action" value="cancel"/>
- <input type="hidden" name="old" value="' + data.name + '"/>
+ <input type="hidden" name="old" value="$name"/>
<input type="submit" value="Cancel"/>
</form>
</span>
View
@@ -37,6 +37,7 @@ package WTPABot;
sub init {
calConnect();
pingConnect();
+ 1;
}
# Watch for changes to the topic

0 comments on commit 6d0b9f0

Please sign in to comment.