eslint complains about the window.confirm call, and neither I nor
some other colleagues here did see that dialogue ever in practice.
The confirm here does not adds any real value, as all other back
navigation are unprotected, but have similar potential in loosing
state.
One can always navigate forward via their user agent and for console
(noVNC, xterm.js) we have now a separate check.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
var history_change_cb = function(token) {
//console.log("HC " + token);
if (!token) {
- var res = window.confirm(gettext('Are you sure you want to navigate away from this page?'));
- if (res) {
- // process text value and close...
- Ext.History.back();
- } else {
- Ext.History.forward();
- }
+ Ext.History.back();
return;
}