luci-base: network.js: simplify rpc error handling
authorJo-Philipp Wich <jo@mein.io>
Fri, 18 Oct 2019 09:49:13 +0000 (11:49 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 18 Oct 2019 09:49:13 +0000 (11:49 +0200)
commitd5ffab23b65fc37719752d122e0d37b38f471870
tree5cc72e674eabde0462a769ba841fcae55bb1e726
parent45e57cf1db2212af033b19d1912f364e6857d068
luci-base: network.js: simplify rpc error handling

Use L.resolveDefault() catch unexpected RPC replies and rename declared
rpc functions in a consistent manner.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/network.js