add:  if (dialog.CellStyleCheckbox.checked) { var currentStyleIndex = (selectedCell.nodeName.toLowerCase() == "th") ? 1 : 0; if (dialog.CellStyleList.selectedIndex != currentStyleIndex) {   selectedCell = editorShell.SwitchTableCellHeaderType(selectedCell); } } 
context: function ApplyCellAttributes(){  var selectedCell = editorShell.GetFirstSelectedCell();  if (!selectedCell)    return;  if (selectedCellCount == 1)  {    // When only one cell is selected, simply clone entire element,    //  thus CSS and JS from Advanced edit is copied        editorShell.CloneAttributes(selectedCell, globalCellElement);  }  else   {    // Apply changes to all selected cells    //XXX THIS DOESN'T COPY ADVANCED EDIT CHANGES!    while (selectedCell)    {      ApplyAttributesToOneCell(selectedCell);       selectedCell = editorShell.GetNextSelectedCell();    }  }  CellDataChanged = false;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/da583636643c92ec16d5986fee7135b57169895c/EdTableProps.js/clean/editor/ui/dialogs/content/EdTableProps.js