mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
optional msd and atx
This commit is contained in:
@@ -37,6 +37,14 @@ function Atx() {
|
||||
/************************************************************************/
|
||||
|
||||
self.setState = function(state) {
|
||||
if (state) {
|
||||
if (state.enabled) {
|
||||
$("atx-dropdown").classList.remove("feature-disabled");
|
||||
} else {
|
||||
$("atx-dropdown").classList.add("feature-disabled");
|
||||
}
|
||||
}
|
||||
|
||||
$("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray");
|
||||
$("atx-hdd-led").className = ((state && state.leds.hdd) ? "led-red" : "led-gray");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user