mirror of
https://github.com/brmlab/brmdoor.git
synced 2025-06-08 11:44:01 +02:00
allow change of alphasign even while streaming
This commit is contained in:
parent
ced66e2f11
commit
adaaad8084
1 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue