luci-base: keep polling confirmation endpoint on XHR failures
authorJo-Philipp Wich <jo@mein.io>
Fri, 26 Jul 2019 10:25:46 +0000 (12:25 +0200)
committerJo-Philipp Wich <jo@mein.io>
Fri, 26 Jul 2019 10:25:46 +0000 (12:25 +0200)
Fixes: #2912
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
modules/luci-base/htdocs/luci-static/resources/ui.js

index 1a98dbcc9a00f4ca01992be5d5f4e6be9a069736..43afc698f64b977064fade858f48158a671577ab 100644 (file)
@@ -1929,7 +1929,7 @@ return L.Class.extend({
                                                method: 'post',
                                                timeout: L.env.apply_timeout * 1000,
                                                query: L.ui.changes.confirm_auth
-                                       }).then(call);
+                                       }).then(call, call);
                                }, delay);
                        };