Revert "allow change of alphasign even while streaming"

This reverts commit adaaad8084.
This commit is contained in:
Pavol Rusnak 2011-07-05 22:08:15 +02:00
parent adaaad8084
commit 6b9575013b

View file

@ -286,7 +286,7 @@ sub web_index {
my $astext = $alphasign->last_text_escaped(); my $astext = $alphasign->last_text_escaped();
my $a_link = ''; my $a_link = '';
$a_link .= '<a href="alphasign">change</a>'; $streaming or $a_link .= '<a href="alphasign">change</a>';
$response->content(<<EOT $response->content(<<EOT
<html> <html>
@ -455,8 +455,10 @@ sub web_alphasign_set {
my $text = $q->param('text'); my $text = $q->param('text');
my $beep = $q->param('beep'); my $beep = $q->param('beep');
$poe_kernel->post($alphasign, 'text', $mode, $text); if (not $streaming) {
$beep and $poe_kernel->post($alphasign, 'beep'); $poe_kernel->post($alphasign, 'text', $mode, $text);
$beep and $poe_kernel->post($alphasign, 'beep');
}
$response->protocol("HTTP/1.1"); $response->protocol("HTTP/1.1");
$response->code(302); $response->code(302);