summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-mod-network/htdocs/luci-static/resources/view
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-10-31 14:37:07 +0100
committerJo-Philipp Wich <jo@mein.io>2019-11-01 12:03:33 +0100
commit37b6092aef9f875b95debdafba7da9933fc10a34 (patch)
tree34ab08a070c788d515bcbd4274cd12a714864c1b /modules/luci-mod-network/htdocs/luci-static/resources/view
parent5ff35d8be44f5fb9d4711cfc9ea1c478577a3e0a (diff)
luci-base, luci-mod-network, luci-app-firewall: migrate luci/getHostHints
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network/htdocs/luci-static/resources/view')
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js4
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/hosts.js2
2 files changed, 2 insertions, 4 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
index e299a3ad10..d7620e7f47 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
@@ -6,7 +6,7 @@
var callHostHints, callDUIDHints, callDHCPLeases, CBILeaseStatus;
callHostHints = rpc.declare({
- object: 'luci',
+ object: 'luci-rpc',
method: 'getHostHints',
expect: { '': {} }
});
@@ -44,8 +44,6 @@ CBILeaseStatus = form.DummyValue.extend({
});
return L.view.extend({
-
-
load: function() {
return Promise.all([
callHostHints(),
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/hosts.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/hosts.js
index 3cdea8adbe..975ac2fec7 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/hosts.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/hosts.js
@@ -4,7 +4,7 @@
return L.view.extend({
callHostHints: rpc.declare({
- object: 'luci',
+ object: 'luci-rpc',
method: 'getHostHints',
expect: { '': {} }
}),