Changeset dd1cbc


Ignore:
Timestamp:
Nov 21, 2011, 5:50:17 PM (9 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
c33c1e
Parents:
bcf746
Message:

fix to prevent double adding of field and update the values on view-change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/vI_threadTreeColumns.js

    rbcf746 rdd1cbc  
    4545
    4646function threadTreeColumn(aHeaderName) {
    47   this.headerValues = {};
    4847  this.headerName = aHeaderName;
    4948  this.threadTreeBoxObj = currentWindow.document.getElementById("threadTree").boxObject;
     
    7170
    7271  _addColumn: function() {
     72    if (currentWindow.document.getElementById("col" + this.headerName))
     73      return;
    7374    let treecolElem = currentWindow.document.getElementById("threadCols");
    7475    let splitter = currentWindow.document.createElement("splitter");
     
    102103  observe: function(aMsgFolder, aTopic, aData) {
    103104    this._addColumn();
     105    this.headerValues = {};
    104106    self = this;
    105107    currentWindow.gDBView.addColumnHandler("col" + self.headerName, self);
Note: See TracChangeset for help on using the changeset viewer.