mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
- yWeb: avoid response from control/message in whole frame
This commit is contained in:
@@ -1,26 +1,46 @@
|
|||||||
{=var-set:cancache=yPyes=}
|
{=var-set:cancache=yPyes=}
|
||||||
{=include-block:Y_Blocks.txt;head=}
|
{=include-block:Y_Blocks.txt;head=}
|
||||||
|
<script type="text/javascript" src="/prototype.js"></script>
|
||||||
|
<script type="text/javascript" src="/Y_Baselib.js"></script>
|
||||||
|
<script type="text/javascript" src="/Y_yweb.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
//<![CDATA[
|
||||||
|
function do_send(mode) {
|
||||||
|
var msg = document.getElementById(mode);
|
||||||
|
var res = "error";
|
||||||
|
if (msg != "")
|
||||||
|
res = trim(loadSyncURL("/control/message?"+mode+"="+msg.value));
|
||||||
|
$("out").update(res);
|
||||||
|
$(mode).setValue("");
|
||||||
|
}
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="work_box">
|
<div class="work_box">
|
||||||
<div class="work_box_head"><div class="work_box_head_h2">
|
<div class="work_box_head"><div class="work_box_head_h2">
|
||||||
{=var-set:help_url=Help-BoxControl-Message=}{=var-set:menu={=L:bc.menue.messages=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
{=var-set:help_url=Help-BoxControl-Message=}{=var-set:menu={=L:bc.menue.messages=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
||||||
<div class="work_box_body">
|
<div class="work_box_body">
|
||||||
<form name="f" action="/control/message" method="get" enctype="application/x-www-form-urlencoded" accept-charset="UTF-8">
|
|
||||||
<table class="y_invisible_table" cellpadding="5" width="100%">
|
<table class="y_invisible_table" cellpadding="5" width="100%">
|
||||||
<tr><td class="y_form_header">{=L:bc.msg.message_to_screen=}</td></tr>
|
<tr><td class="y_form_header">{=L:bc.msg.message_to_screen=}</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<input name="nmsg" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
|
<input id="nmsg" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
|
||||||
<button type="submit" name="message" ytype="go" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
|
<button type="button" ytype="go" onclick="do_send('nmsg')" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
<tr><td class="y_form_header">{=L:bc.msg.popup_to_screen=}</td></tr>
|
<tr><td class="y_form_header">{=L:bc.msg.popup_to_screen=}</td></tr>
|
||||||
<tr><td>
|
<tr><td>
|
||||||
<input name="popup" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
|
<input id="popup" type="text" size="50" maxlength="255" title="{=L:bc.msg.message_to_screen_desc=}"/>
|
||||||
<button type="submit" name="pmessage" ytype="go" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
|
<button type="button" ytype="go" onclick="do_send('popup')" title="{=L:bc.msg.send_message=}">{=L:send=}</button>
|
||||||
</td></tr>
|
</td></tr>
|
||||||
</table>
|
</table>
|
||||||
<br/>
|
<br/>
|
||||||
</form>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="work_box">
|
||||||
|
<div class="work_box_head"><div class="work_box_head_h2">
|
||||||
|
{=var-set:help_url=Help-BoxControl-Message=}{=var-set:menu={=L:answer=}=}{=include-block:Y_Blocks.txt;work_menu=}</div></div>
|
||||||
|
<div class="work_box_body">
|
||||||
|
<div id="out"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
version=2.9.0.28
|
version=2.9.0.29
|
||||||
date=10.02.2016
|
date=10.02.2016
|
||||||
type=Release
|
type=Release
|
||||||
info=Port CST
|
info=Port CST
|
||||||
|
Reference in New Issue
Block a user