summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/htdocs/luci-static/resources/ui.js
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2019-08-20 15:02:36 +0200
committerJo-Philipp Wich <jo@mein.io>2019-09-10 15:28:16 +0200
commitb0dde567ca79c328e62736e88317dd4a8459bb0d (patch)
treec3619cb2e92f3f61cd60e7f1240e56dde42a802c /modules/luci-base/htdocs/luci-static/resources/ui.js
parent3500562d5e3fbfb4530059baed2300bfaa1e757f (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.js2
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;
});