summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/luci.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-04-01 16:22:13 +0200
committerJo-Philipp Wich <jo@mein.io>2019-07-07 15:36:24 +0200
commitb839ee87f2df52d5445bd668352adbca6d2c906b (patch)
tree62f928e0bb23ced2269df44833530888359e4f29 /modules/luci-base/htdocs/luci-static/resources/luci.js
parent9c7eb1decd82344e22a10e6f5ac36b463d2149f5 (diff)
luci-base: introduce form.js
Add a new client side form.js library which is a more or less direct reimplementation of the Lua side cbi.lua in JavaScript. Due to its client side nature, it supports a number of features which would be hard to realize on the server side, such as drag&drop sorting, modal sub-map dialogs, reload-free editing etc. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/luci.js')
-rw-r--r--modules/luci-base/htdocs/luci-static/resources/luci.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/luci.js b/modules/luci-base/htdocs/luci-static/resources/luci.js
index 896ded3af..767d013d7 100644
--- a/modules/luci-base/htdocs/luci-static/resources/luci.js
+++ b/modules/luci-base/htdocs/luci-static/resources/luci.js
@@ -451,7 +451,8 @@
Promise.all([
domReady,
- this.require('ui')
+ this.require('ui'),
+ this.require('form')
]).then(this.setupDOM.bind(this)).catch(function(error) {
alert('LuCI class loading error:\n' + error);
});