diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-08-14 22:54:59 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-08-14 22:58:15 +0200 |
commit | 7179d2e6dd1d9baf1f7e8f6862f702588eb5d69c (patch) | |
tree | 45d64c207c7fbc5330a20761153e244422b0f1dc /applications/luci-app-vnstat | |
parent | 0d0882aea0e67faaef769c3517f17b1f650f0794 (diff) |
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>
Diffstat (limited to 'applications/luci-app-vnstat')
0 files changed, 0 insertions, 0 deletions