diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-07-31 08:41:53 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-08-14 22:58:15 +0200 |
commit | 00ec399fa134f7e76f3a911ab18f66a5b88a1558 (patch) | |
tree | 812f839a9fcd5c490011730d96356162a559978c /modules/luci-base | |
parent | e64b0c3c0d1707b820f2cc5203d3017574cfa5a6 (diff) |
luci-base: network.js: expose prefixToMask() and maskToPrefix()
Expose the prefixToMask() and maskToPrefix() helper functions for use by
other modules, e.g. the datatype validator.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/network.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/network.js b/modules/luci-base/htdocs/luci-static/resources/network.js index 87697a8a4..93896549b 100644 --- a/modules/luci-base/htdocs/luci-static/resources/network.js +++ b/modules/luci-base/htdocs/luci-static/resources/network.js @@ -594,6 +594,9 @@ function deviceSort(a, b) { var Network, Protocol, Device, WifiDevice, WifiNetwork; Network = L.Class.extend({ + prefixToMask: prefixToMask, + maskToPrefix: maskToPrefix, + flushCache: function() { return Promise.resolve(_state).then(function() { _flush = true; |