From: Jo-Philipp Wich Date: Wed, 31 Jul 2019 06:41:53 +0000 (+0200) Subject: luci-base: network.js: expose prefixToMask() and maskToPrefix() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=00ec399fa134f7e76f3a911ab18f66a5b88a1558;p=oweals%2Fluci.git 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 --- 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;