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>
This commit is contained in:
parent
f2fa59e89a
commit
b6797821b8
1 changed files with 1 additions and 1 deletions
|
@ -4508,7 +4508,7 @@ var UI = baseclass.extend(/** @lends LuCI.ui.prototype */ {
|
||||||
method: 'post',
|
method: 'post',
|
||||||
timeout: L.env.apply_timeout * 1000,
|
timeout: L.env.apply_timeout * 1000,
|
||||||
query: { sid: L.env.sessionid, token: L.env.token }
|
query: { sid: L.env.sessionid, token: L.env.token }
|
||||||
}).then(call);
|
}).then(call, call.bind(null, { status: 0 }, null, 0));
|
||||||
}, delay);
|
}, delay);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue