nhttpd/web/Y_Tools_Rcsim.yhtm: skip shutdown ask if box is in standby

This commit is contained in:
satbaby
2012-10-24 11:14:09 +02:00
parent dfbff310cc
commit ec48d24af2

View File

@@ -5,9 +5,13 @@
//<![CDATA[
function rcsim(_key)
{
if(_key == "KEY_POWER")
if(confirm("{=L:bc.control.shutdown.ask=}") != true)
if(_key == "KEY_POWER"){
var __result = trim(loadSyncURL("/control/standby"));
if (__result == "off") {
if(confirm("{=L:bc.control.shutdown.ask=}") != true)
return;
}
}
loadSyncURL("/control/rcem?"+_key);
}
//]]>