diff options
author | Jo-Philipp Wich <jo@mein.io> | 2022-05-05 23:31:21 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2022-05-06 13:42:54 +0200 |
commit | b6797821b86678d8dd604ce4805691784e6dc3ce (patch) | |
tree | 8fb6430626d026e122058413aa0ebc5ea3d663af /modules | |
parent | f2fa59e89af3d4bdae9b12471184425b307ad5d6 (diff) |
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 <jo@mein.io>
Diffstat (limited to 'modules')
-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 b8763ef160..52f155b90e 100644 --- a/modules/luci-base/htdocs/luci-static/resources/ui.js +++ b/modules/luci-base/htdocs/luci-static/resources/ui.js @@ -4508,7 +4508,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); }; |