mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 08:51:04 +02:00
yWeb: add CEC option to standby switches
Origin commit data
------------------
Commit: 19593d5c6a
Author: vanhofen <vanhofen@gmx.de>
Date: 2014-02-10 (Mon, 10 Feb 2014)
Origin message was:
------------------
- yWeb: add CEC option to standby switches
This commit is contained in:
@@ -15,6 +15,10 @@ function goUrl(_url){
|
||||
}
|
||||
$("out").update(res);
|
||||
}
|
||||
function standby(_standby){
|
||||
var _cec = (document.getElementById('checkCEC').checked == true) ? "on" : "off";
|
||||
goUrl("/control/standby?"+_standby+"&cec="+_cec);
|
||||
}
|
||||
//]]>
|
||||
</script>
|
||||
</head>
|
||||
@@ -32,9 +36,10 @@ function goUrl(_url){
|
||||
<input type="button" value="{=L:bc.control.shutdown=}" onclick='goConfirmUrl("{=L:bc.control.shutdown.ask=}","/control/shutdown");'/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="button" value="{=L:on=}" onclick='goUrl("/control/standby?on");'/>
|
||||
<input type="button" value="{=L:off=}" onclick='goUrl("/control/standby?off");'/>
|
||||
<input type="button" value="{=L:on=}" onclick='standby("on");'/>
|
||||
<input type="button" value="{=L:off=}" onclick='standby("off");'/>
|
||||
<input type="button" value="{=L:bc.control.status=}" onclick='goUrl("/control/standby");'/>
|
||||
CEC: <input id="checkCEC" name="checkCEC" type="checkbox" checked="checked"/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr><td class="y_form_header">{=L:bc.control.playback=}</td><td class="y_form_header">{=L:bc.control.recording_mode=}</td></tr>
|
||||
|
Reference in New Issue
Block a user