Fix title generation (need full display name, not last part).
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 27 Feb 2009 18:49:16 +0000 (11:49 -0700)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 27 Feb 2009 18:50:06 +0000 (11:50 -0700)
imp/js/src/DimpBase.js

index e3ae8ad..ac295b6 100644 (file)
@@ -762,15 +762,13 @@ var DimpBase = {
         if (this.viewport.isFiltering()) {
             label = DIMP.text.search + ' :: ' + (this.viewport.getMetaData('total_rows') || 0) + ' ' + DIMP.text.resfound;
         } else {
+            label = this.viewport.getMetaData('label');
             elt = $(this.getFolderId(this.folder));
             if (elt) {
                 unseen = elt.readAttribute('u');
-                label = elt.readAttribute('l');
                 if (unseen > 0) {
                     label += ' (' + unseen + ')';
                 }
-            } else {
-                label = this.viewport.getMetaData('label');
             }
         }
         DimpCore.setTitle(label);