Automatically zoom to the new player when adding a new one.
[ccbs] / html / registration.pl
index ae6d534..a2da719 100755 (executable)
@@ -6,6 +6,7 @@ use warnings;
 
 my $cgi = new CGI;
 my $id = $cgi->param('id');
+my $selected_player = $cgi->param('player');
 
 my $dbh = ccbs::db_connect();
 
@@ -17,6 +18,7 @@ ccbs::print_header();
 ccbs::process_template('registration.tmpl', $tournament->{'tournamentname'}, {
        tournament => $tournament,
        registered => $registered,
-       available => $available
+       available => $available,
+       selected_player => $selected_player
 });
 $dbh->disconnect;