From 806daf3107511e930ca67ad9c86866ceeb336413 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Mon, 12 Oct 2009 19:03:43 +0200 Subject: [PATCH] Go back in history after closing event form. --- kronolith/js/kronolith.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/kronolith/js/kronolith.js b/kronolith/js/kronolith.js index 382011eff..346915414 100644 --- a/kronolith/js/kronolith.js +++ b/kronolith/js/kronolith.js @@ -1760,6 +1760,10 @@ KronolithCore = { case 'kronolithQuickinsertForm': $('kronolithQuickinsert').fade(); break; + case 'kronolithEventForm': + this._closeRedBox(); + window.history.back(); + break; } break; } @@ -1851,11 +1855,13 @@ KronolithCore = { }.bind(this)); $('kronolithBody').select('div[calendar=' + cal + '][eventid=' + eventid + ']').invoke('hide'); this._closeRedBox(); + window.history.back(); e.stop(); return; case 'kronolithEventCancel': this._closeRedBox(); + window.history.back(); e.stop(); return; @@ -2149,6 +2155,7 @@ KronolithCore = { } this._loadEventsCallback(r); this._closeRedBox(); + window.history.back(); }.bind(this)); }, @@ -2198,6 +2205,7 @@ KronolithCore = { { if (!r.response.event) { RedBox.close(); + window.history.back(); return; } -- 2.11.0