From 46c92c6bb5da9cd939e9bc8214d237a8a881e4dd Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Mon, 24 Aug 2009 23:39:44 -0600 Subject: [PATCH] Don't add temporary search folders to browser history --- imp/js/DimpBase.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/imp/js/DimpBase.js b/imp/js/DimpBase.js index ea25826bb..e2f705708 100644 --- a/imp/js/DimpBase.js +++ b/imp/js/DimpBase.js @@ -225,7 +225,7 @@ var DimpBase = { $('dimpmain_folder').show(); } // This catches the refresh case - no need to re-add to history - if (!Object.isUndefined(this.folder)) { + if (!Object.isUndefined(this.folder) && !this.sfolder) { this._addHistory(loc); } } @@ -1342,6 +1342,7 @@ var DimpBase = { this.loadMailbox(this.sfolder); } this.viewport.deleteView(f); + this.sfolder = null; } }, -- 2.11.0