mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
nhttpd/web/Y_Tools_Rcsim.yhtm: skip shutdown ask if box is in standby
Origin commit data
------------------
Commit: ec48d24af2
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2012-10-24 (Wed, 24 Oct 2012)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
//]]>
|
||||
|
Reference in New Issue
Block a user