projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3500562
)
luci-base: ui.js: also handle failed promises in createHandlerFn()
author
Jo-Philipp Wich
<jo@mein.io>
Tue, 20 Aug 2019 13:02:36 +0000
(15:02 +0200)
committer
Jo-Philipp Wich
<jo@mein.io>
Tue, 10 Sep 2019 13:28:16 +0000
(15:28 +0200)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js
patch
|
blob
|
history
diff --git
a/modules/luci-base/htdocs/luci-static/resources/ui.js
b/modules/luci-base/htdocs/luci-static/resources/ui.js
index ad1547fee2648f7b0c7cbdd511edc0d424182471..633707b2b6e693543809db1b79251a13ab8e32d2 100644
(file)
--- 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;
});