allow change of alphasign even while streaming

This commit is contained in:
Pavol Rusnak 2011-07-05 21:57:09 +02:00
parent ced66e2f11
commit adaaad8084

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