Changeset ec2633


Ignore:
Timestamp:
Jul 17, 2009, 8:03:36 PM (12 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
828364
Parents:
8d2522
Message:

change for TB3b3, collapsedHeaderView is not included anymore

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_getHeader.js

    r8d2522 rec2633  
    7373        var index;
    7474
    75         var srcMsgURI = GetLoadedMessage();
     75        try { var srcMsgURI = gDBView.URIForFirstSelectedMessage; } catch (ex) { return; }
    7676        if (srcMsgURI == null) return;
    7777       
     
    222222        header_list.push("Received")
    223223
    224         try {
     224//      try {
    225225            var extraHdrs = " " +
    226226                vI_prepareHeader.prefroot.getCharPref("mailnews.headers.extraExpandedHeaders").toLowerCase()
     
    232232               
    233233                var j; var found = false;
    234                 // check if Header is included in collapsed HeaderView
    235                 for (var j = 0; j < gCollapsedHeaderList.length; j++) {
    236                     if (gCollapsedHeaderList[j].name == headerToSearch) {
    237 //                      vI_notificationBar.dump("## vI_prepareHeader: Header '" + headerToSearch + "' in gCollapsedHeaderList\n");
    238                         found = true; break;
     234               
     235                // collapsedHeaderView is removed in
     236                // https://bugzilla.mozilla.org/show_bug.cgi?id=480623
     237                // http://build.mozillamessaging.com/mercurial/comm-central/rev/1fbbd90413d9
     238                if (typeof(gCollapsedHeaderList) != "undefined") {
     239                    // check if Header is included in collapsed HeaderView
     240                    for (var j = 0; j < gCollapsedHeaderList.length; j++) {
     241                        if (gCollapsedHeaderList[j].name == headerToSearch) {
     242    //                      vI_notificationBar.dump("## vI_prepareHeader: Header '" + headerToSearch + "' in gCollapsedHeaderList\n");
     243                            found = true; break;
     244                        }
    239245                    }
     246                    if (found) continue;
    240247                }
    241                 if (found) continue;
     248
    242249                // check if Header is included in expanded HeaderView
    243250                for (var j = 0; j < gExpandedHeaderList.length; j++) {
     
    264271
    265272            return true;
    266         }
    267         catch (e) {
    268             vI_notificationBar.dump("## vI_prepareHeader: your application is too old, please update. Otherwise try to install mnenhy or enigmail to use additional headers.")
    269             return false;
    270         }
     273//      }
     274//      catch (e) {
     275//          vI_notificationBar.dump("## vI_prepareHeader: your application is too old, please update. Otherwise try to install mnenhy or enigmail to use additional headers.")
     276//          return false;
     277//      }
    271278    },
    272279
Note: See TracChangeset for help on using the changeset viewer.