Don't add temporary search folders to browser history
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Aug 2009 05:39:44 +0000 (23:39 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Tue, 25 Aug 2009 05:39:44 +0000 (23:39 -0600)
imp/js/DimpBase.js

index ea25826..e2f7057 100644 (file)
@@ -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;
         }
     },