mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 17:01:15 +02:00
nhttpd/web/Y_Tools_Rcsim.yhtm: skip shutdown ask if box is in standby
This commit is contained in:
@@ -5,9 +5,13 @@
|
|||||||
//<![CDATA[
|
//<![CDATA[
|
||||||
function rcsim(_key)
|
function rcsim(_key)
|
||||||
{
|
{
|
||||||
if(_key == "KEY_POWER")
|
if(_key == "KEY_POWER"){
|
||||||
if(confirm("{=L:bc.control.shutdown.ask=}") != true)
|
var __result = trim(loadSyncURL("/control/standby"));
|
||||||
|
if (__result == "off") {
|
||||||
|
if(confirm("{=L:bc.control.shutdown.ask=}") != true)
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
loadSyncURL("/control/rcem?"+_key);
|
loadSyncURL("/control/rcem?"+_key);
|
||||||
}
|
}
|
||||||
//]]>
|
//]]>
|
||||||
|
Reference in New Issue
Block a user