From 00ec399fa134f7e76f3a911ab18f66a5b88a1558 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Wed, 31 Jul 2019 08:41:53 +0200 Subject: [PATCH] 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 --- modules/luci-base/htdocs/luci-static/resources/network.js | 3 +++ 1 file changed, 3 insertions(+) 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; -- 2.25.1