diff --git a/CHANGES b/CHANGES index 310a485..ddccd0c 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +0.50.1 2024-08-30 12:27:22 +0200 Tobias Oetiker + + - show a popup before reloading the page + 0.50.0 2024-08-29 17:12:41 +0200 Tobias Oetiker - reload the browser window when an exception with status 7 is returned diff --git a/lib/CallBackery.pm b/lib/CallBackery.pm index b13609c..e20c710 100644 --- a/lib/CallBackery.pm +++ b/lib/CallBackery.pm @@ -38,7 +38,7 @@ use CallBackery::Database; use CallBackery::User; use Scalar::Util qw(weaken); -our $VERSION = '0.50.0'; +our $VERSION = '0.50.1'; =head2 config diff --git a/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/data/Server.js b/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/data/Server.js index 327e938..a3b1176 100644 --- a/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/data/Server.js +++ b/lib/CallBackery/qooxdoo/callbackery/source/class/callbackery/data/Server.js @@ -58,16 +58,22 @@ qx.Class.define("callbackery.data.Server", { origThis.setSessionCookie(ret.sessionCookie); origArguments.callee.base.apply(origThis, origArguments); }); - login.open(); return; case 7: - const msg = callbackery.ui.MsgBox.getInstance(); - msg.addListenerOnce('ok', (e) => { window.location.reload(true); }); - msg.info( - this.tr('Session Expired'), - this.xtr(exc.message), - false + if (window.console){ + window.console.log("Session Expired. Reloading page"); + } + callbackery.ui.Busy.getInstance().vanish(); + let mb = callbackery.ui.MsgBox.getInstance() + mb.addListenerOnce('choice',(e) => { + if (e.getData() == 'ok'){ + window.location.reload(true); + } + }); + mb.info( + mb.tr('Session Expired'), + mb.xtr(exc.message) ); return; }