From 514a459b9b8a78860eb7477724b51967889b9be7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Thu, 5 May 2022 23:31:21 +0200 Subject: [PATCH] luci-base: ui.js: gracefully handle failing confirm calls on rollback Do not abort the poll loop if some confirm request attempts fail, which might happen when the device starts rolling back its configuration. Before that fix, the rollback information dialog offering an unchecked apply was not reliably presented in such situations. Signed-off-by: Jo-Philipp Wich (cherry picked from commit b6797821b86678d8dd604ce4805691784e6dc3ce) --- modules/luci-base/htdocs/luci-static/resources/ui.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/luci-base/htdocs/luci-static/resources/ui.js b/modules/luci-base/htdocs/luci-static/resources/ui.js index 5abd3b388d..e5b5270c82 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4491,7 +4491,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ { method: 'post', timeout: L.env.apply_timeout * 1000, query: { sid: L.env.sessionid, token: L.env.token } - }).then(call); + }).then(call, call.bind(null, { status: 0 }, null, 0)); }, delay); };