aboutsummaryrefslogtreecommitdiff
path: root/_www/block.d/index.html
diff options
context:
space:
mode:
Diffstat (limited to '_www/block.d/index.html')
-rw-r--r--_www/block.d/index.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/_www/block.d/index.html b/_www/block.d/index.html
index 47ff4fa..6c32032 100644
--- a/_www/block.d/index.html
+++ b/_www/block.d/index.html
@@ -82,7 +82,7 @@
<div id="HostsBlocks" class="block_source"></div>
<div>
- <button onclick="updateHostsBlocks()">Save</button>
+ <button onclick="blockdUpdate()">Save</button>
</div>
<script src="/index.js"></script>
@@ -110,10 +110,10 @@
resc.env.HostsBlocks[key].IsEnabled = val
}
- async function blockdUpdate(name) {
- const res = await resc.BlockdUpdate(name)
+ async function blockdFetch(name) {
+ const res = await resc.BlockdFetch(name)
if (res.code != 200) {
- notifError("blockdUpdate: ", res.message)
+ notifError("blockdFetch: ", res.message)
return
}
@@ -124,10 +124,10 @@
renderHostsBlocks(resc.env.HostsBlocks)
}
- async function updateHostsBlocks() {
- const res = await resc.updateHostsBlocks(resc.env.HostsBlocks)
+ async function blockdUpdate() {
+ const res = await resc.BlockdUpdate(resc.env.HostsBlocks)
if (res.code != 200) {
- notifError("updateHostsBlocks: ", res.message)
+ notifError("blockdUpdate: ", res.message)
return
}
@@ -158,7 +158,7 @@
<span class="info">
<div>
${hostsBlock.Name}
- <button onclick="blockdUpdate('${k}')">
+ <button onclick="blockdFetch('${k}')">
Update
</button>
</div>