if (loc.startsWith('msg:')) {
separator = loc.indexOf(':', 4);
f = loc.substring(4, separator);
- this.uid = loc.substring(separator + 1);
+ this.uid = parseInt(loc.substring(separator + 1), 10);
loc = 'folder:' + f;
// Now fall through to the 'folder:' check below.
}
case 'options':
this.highlightSidebar('appoptions');
- this._addHistory(loc);
DimpCore.setTitle(DIMP.text.prefs);
this.iframeContent(loc, DIMP.conf.URI_PREFS_IMP);
break;
this.resetSelected();
this.quicksearchClear(true);
- if (this.folder == f) {
- return;
+ if (this.folder != f) {
+ $('folderName').update(DIMP.text.loading);
+ $('msgHeader').update();
+ this.folderswitch = true;
+ this.folder = f;
}
-
- $('folderName').update(DIMP.text.loading);
- $('msgHeader').update();
- this.folderswitch = true;
- this.folder = f;
}
this.viewport.loadView(f, this.uid ? { imapuid: Number(this.uid), view: f } : null, opts.background);