summaryrefslogtreecommitdiff
path: root/web/share/js/kvm/wol.js
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-07-21 15:02:57 +0300
committerDevaev Maxim <[email protected]>2020-07-21 15:27:14 +0300
commit360ff0090346fe2ead3e42d7bc39391325f8a2d3 (patch)
tree27de4c274acfe1abcc3df6b94d123a2cbb0fd03f /web/share/js/kvm/wol.js
parentb5ba546481dffa687395df725fb4dd57c7dc8338 (diff)
refactoring
Diffstat (limited to 'web/share/js/kvm/wol.js')
-rw-r--r--web/share/js/kvm/wol.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/web/share/js/kvm/wol.js b/web/share/js/kvm/wol.js
index 4833646c..1492d89d 100644
--- a/web/share/js/kvm/wol.js
+++ b/web/share/js/kvm/wol.js
@@ -42,14 +42,17 @@ export function WakeOnLan() {
self.setState = function(state) {
if (state) {
- tools.setFeatureEnabled($("wol"), state.enabled);
+ tools.featureSetEnabled($("wol"), state.enabled);
__target = state.target;
}
wm.switchEnabled($("wol-wakeup-button"), (state && state.enabled));
};
var __clickWakeupButton = function() {
- let msg = `Are you sure to send Wake-on-LAN packet to the server?<br>Target: <b>${__target.mac}</b> (${__target.ip}:${__target.port})?`;
+ let msg = `
+ Are you sure to send Wake-on-LAN packet to the server?<br>
+ Target: <b>${__target.mac}</b> (${__target.ip}:${__target.port})?
+ `;
wm.confirm(msg).then(function(ok) {
if (ok) {
let http = tools.makeRequest("POST", "/api/wol/wakeup", function() {