diff options
author | Jo-Philipp Wich <jo@mein.io> | 2019-08-20 15:02:36 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2019-09-10 15:28:16 +0200 |
commit | b0dde567ca79c328e62736e88317dd4a8459bb0d (patch) | |
tree | c3619cb2e92f3f61cd60e7f1240e56dde42a802c /modules/luci-base/htdocs/luci-static/resources/ui.js | |
parent | 3500562d5e3fbfb4530059baed2300bfaa1e757f (diff) |
luci-base: ui.js: also handle failed promises in createHandlerFn()
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-base/htdocs/luci-static/resources/ui.js')
-rw-r--r-- | modules/luci-base/htdocs/luci-static/resources/ui.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index ad1547fee2..633707b2b6 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -2156,7 +2156,7 @@ return L.Class.extend({ if (t.blur) t.blur(); - Promise.resolve(fn.apply(ctx, arguments)).then(function() { + Promise.resolve(fn.apply(ctx, arguments)).finally(function() { t.classList.remove('spinning'); t.disabled = false; }); |