Better location to set mailbox name in the hash
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 18 Jan 2011 23:00:47 +0000 (16:00 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 19 Jan 2011 18:24:37 +0000 (11:24 -0700)
imp/js/dimpbase.js

index 11fa847..570f25d 100644 (file)
@@ -191,13 +191,6 @@ var DimpBase = {
                     $('dimpmain_portal').hide();
                     $('dimpmain_folder').show();
                 }
-
-                // This catches the refresh case - no need to re-add to history
-                if (!Object.isUndefined(this.folder)) {
-                    this.setHash(loc);
-                }
-            } else if (this.folder == f) {
-                this.setHash(loc);
             }
 
             this.loadMailbox(f);
@@ -589,10 +582,9 @@ var DimpBase = {
                 l = this.viewport.getMetaData('label');
 
             this.setMessageListTitle();
+            this.setMsgHash();
 
             if (this.isSearch()) {
-                this.setMsgHash();
-
                 tmp = this.viewport.getMetaData('slabel');
                 if (this.viewport.getMetaData('vfolder')) {
                     $('search_close').hide();