rem:  var applyButton = document.documentElement.getButton("extra1"); if (applyButton) { applyButton.label = GetString("Apply"); applyButton.setAttribute("accesskey", GetString("ApplyAccessKey")); }  
context: function InitDialog(){// turn on extra1 to be "apply"  var applyButton = document.documentElement.getButton("extra1");  if (applyButton)  {    applyButton.label = GetString("Apply");    applyButton.setAttribute("accesskey", GetString("ApplyAccessKey"));  }    // Get Table attributes  gDialog.TableRowsInput.value = gRowCount;  gDialog.TableColumnsInput.value = gColCount;  gDialog.TableWidthInput.value = InitPixelOrPercentMenulist(globalTableElement, gTableElement, "width", "TableWidthUnits", gPercent);  if (gUseCSS) {    gDialog.TableHeightInput.value = InitPixelOrPercentMenulist(globalTableElement, gTableElement, "height",                                                                "TableHeightUnits", gPercent);  }  gDialog.BorderWidthInput.value = globalTableElement.border;  gDialog.SpacingInput.value = globalTableElement.cellSpacing;  gDialog.PaddingInput.value = globalTableElement.cellPadding;  var marginLeft  = GetHTMLOrCSSStyleValue(globalTableElement, "align", "margin-left");  var marginRight = GetHTMLOrCSSStyleValue(globalTableElement, "align", "margin-right");  var halign = marginLeft.toLowerCase() + " " + marginRight.toLowerCase();  if (halign == "center center" || halign == "auto auto")    gDialog.TableAlignList.value = "center";  else if (halign == "right right" || halign == "auto 0px")    gDialog.TableAlignList.value = "right";  else // Default = left    gDialog.TableAlignList.value = "left";  // Be sure to get caption from table in doc, not the copied "globalTableElement"  gTableCaptionElement = gTableElement.caption;  if (gTableCaptionElement)  {    var align = GetHTMLOrCSSStyleValue(gTableCaptionElement, "align", "caption-side");    if (align != "bottom" && align != "left" && align != "right")      align = "top";    gDialog.TableCaptionList.value = align;  }  gTableColor = GetHTMLOrCSSStyleValue(globalTableElement, bgcolor, cssBackgroundColorStr);  gTableColor = ConvertRGBColorIntoHEXColor(gTableColor);  SetColor("tableBackgroundCW", gTableColor);  InitCellPanel();}
meta: 8395	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8395/125996288fb37dc848b49b3671b28410e8b75158/EdTableProps.js/buggy/editor/ui/dialogs/content/EdTableProps.js