Skip to content

Commit

Permalink
Fix cancelling events through the web form.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeresig committed Mar 8, 2011
1 parent 1b1cf9a commit 6d0b9f0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.cgi
Expand Up @@ -75,9 +75,9 @@ foreach my $event ( @WTPA::events ) {
$toUpdate .= qq~<li><span class="date">$nice_date $nice_time:</span> $namePlace $toUpdate .= qq~<li><span class="date">$nice_date $nice_time:</span> $namePlace
<span class='buttons'> <span class='buttons'>
<input type='button' value='Update' class="update"/> <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="action" value="cancel"/>
<input type="hidden" name="old" value="' + data.name + '"/> <input type="hidden" name="old" value="$name"/>
<input type="submit" value="Cancel"/> <input type="submit" value="Cancel"/>
</form> </form>
</span> </span>
Expand Down
1 change: 1 addition & 0 deletions wtpa-bot.pl
Expand Up @@ -37,6 +37,7 @@ package WTPABot;
sub init { sub init {
calConnect(); calConnect();
pingConnect(); pingConnect();
1;
} }


# Watch for changes to the topic # Watch for changes to the topic
Expand Down

0 comments on commit 6d0b9f0

Please sign in to comment.