From: Steinar H. Gunderson Date: Thu, 17 Feb 2005 19:36:51 +0000 (+0000) Subject: Automatically zoom to the new player when adding a new one. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=e24a9f842f0295d01144db3ba4a597f309341241;hp=e49c027eb9479fb64800142a53f5d5dfe0d290cf Automatically zoom to the new player when adding a new one. --- diff --git a/html/registration.pl b/html/registration.pl index ae6d534..a2da719 100755 --- a/html/registration.pl +++ b/html/registration.pl @@ -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; diff --git a/html/templates/registration.tmpl b/html/templates/registration.tmpl index 73cdcdd..a51778f 100644 --- a/html/templates/registration.tmpl +++ b/html/templates/registration.tmpl @@ -9,7 +9,11 @@