rem: viewDebug("gOldPrevColumn = " + gOldPrevColumn + "\n"); if (currCol && subjectCol) threadTree._reorderColumn(currCol, subjectCol, true); gGroupColumn = currCol; 
add: if (groupedBySortUsingDummyRow()) { currCol.removeAttribute("primary"); subjectCol.setAttribute("primary", "true"); } 
context: function UpdateSortIndicators(sortType, sortOrder){  // show the twisties if the view is threaded  var threadCol = document.getElementById("threadCol");  var currCol;  var sortedColumn;  // set the sort indicator on the column we are sorted by  var colID = ConvertSortTypeToColumnID(sortType);  if (colID)    sortedColumn = document.getElementById(colID);  currCol = gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort     ? sortedColumn : document.getElementById("subjectCol");  if (gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort)  {    var threadTree = document.getElementById("threadTree");      var subjectCol = document.getElementById("subjectCol");    // if this is persistent, need to reverse it when done.    gOldPrevColumn = currCol._previousVisibleColumn;    viewDebug("gOldPrevColumn = " + gOldPrevColumn + "\n");    if (currCol && subjectCol)      threadTree._reorderColumn(currCol, subjectCol, true);    gGroupColumn = currCol;    // hide the threaded column when in grouped view since you can't do     // threads inside of a group.    document.getElementById("threadCol").collapsed = true;  }  // clear primary attribute from group column if going to a non-grouped view.  if (gGroupColumn && !(gDBView.viewFlags & nsMsgViewFlagsType.kGroupBySort))  {    document.getElementById("threadCol").collapsed = false;    if (gGroupColumn != currCol)      gGroupColumn.removeAttribute("primary");    if (gOldPrevColumn)    {      var threadTree = GetThreadTree();      threadTree._reorderColumn(gGroupColumn, gOldPrevColumn, false);    }    gGroupColumn = null;  }  if (GetDBView().viewFlags & nsMsgViewFlagsType.kThreadedDisplay) {    threadCol.setAttribute("sortDirection", "ascending");    currCol.setAttribute("primary", "true");  }  else {    threadCol.removeAttribute("sortDirection");    currCol.removeAttribute("primary");  }  // remove the sort indicator from all the columns  while (currCol) {    currCol.removeAttribute("sortDirection");    currCol = currCol.nextSibling;  }  if (sortedColumn) {    if (sortOrder == nsMsgViewSortOrder.ascending) {      sortedColumn.setAttribute("sortDirection","ascending");    }    else {      sortedColumn.setAttribute("sortDirection","descending");    }  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/96e13dbf5bdbbbb0842184f733c94f5b0cd07e0e/threadPane.js/clean/mailnews/base/resources/content/threadPane.js