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>
This commit is contained in:
parent
9c7eb1decd
commit
b839ee87f2
2 changed files with 1671 additions and 1 deletions
1669
modules/luci-base/htdocs/luci-static/resources/form.js
Normal file
1669
modules/luci-base/htdocs/luci-static/resources/form.js
Normal file
File diff suppressed because it is too large
Load diff
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue