Skip to content
Commit 706c6836 authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: introduce common JavaScript api



Introduce a new script file luci.js which is included by default and
intended to be the common location of functions currently scattered
in cbi.js and xhr.js.

The luci.js file provides a LuCI() class which - among other things -
implements helpers to construct URL paths and making HTTP requests.

A singleton instance of the class is instantiated as window.L upon
load and preset with the necessary environment information.

Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent 17690f2d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment