luci/modules/luci-base/htdocs
Jo-Philipp Wich 7179d2e6dd luci-base: ui.js: add createHandlerFn() helper
The createHandlerFn() helper function is useful to construct onclick
or similar event handling functions. It will add a "spinning" CSS
class on the event target element and disable the element, wrap the
given function with Promise.resolv() and re-enable the target element
once the promise is settled.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
2019-08-14 22:58:15 +02:00
..
cgi-bin Rework LuCI build system 2015-01-08 16:26:20 +01:00
luci-static/resources luci-base: ui.js: add createHandlerFn() helper 2019-08-14 22:58:15 +02:00