rem: rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows); if (rows == "") {  dialog.rowsInput.focus(); return false; } 
add: if (ValidateData()) { editorShell.CloneAttributes(tableElement, globalElement); 
context: function onOK(){  rows = ValidateNumberString(dialog.rowsInput.value, 1, maxRows);  if (rows == "") {    // Set focus to the offending control    dialog.rowsInput.focus();    return false;  }  columns = ValidateNumberString(dialog.columnsInput.value, 1, maxColumns);  if (columns == "") {    // Set focus to the offending control    dialog.columnsInput.focus();    return false;  }  dump("Rows = "+rows+"  Columns = "+columns+"\n");  for (i = 0; i < rows; i++)  {    newRow = editorShell.CreateElementWithDefaults("tr");    if (newRow)    {      tableElement.appendChild(newRow);      for (j = 0; j < columns; j++)      {        newCell = editorShell.CreateElementWithDefaults("td");        if (newCell)        {          newRow.appendChild(newCell);        }      }    }  }  // Set attributes: these may be empty strings  borderText = TrimString(dialog.borderInput.value);  if (StringExists(borderText)) {    // Set the other attributes on the table    if (ValidateNumberString(borderText, 0, maxPixels))      tableElement.setAttribute("border", borderText);  }  widthText = TrimString(dialog.widthInput.value);  if (StringExists(widthText)) {    var maxLimit;    if (percentChar == "%") {      maxLimit = 100;    } else {      // Upper limit when using pixels      maxLimit = maxPixels;    }    widthText = ValidateNumberString(dialog.widthInput.value, 1, maxLimit);    if (widthText != "") {      widthText += percentChar;      dump("Table Width="+widthText+"\n");      tableElement.setAttribute("width", widthText);    }  }  // Don't delete selected text when inserting  editorShell.InsertElement(tableElement, false);  return true;}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/dd1fea4e79dd1eac8c26058ce95c469c8fa645eb/EdInsertTable.js/clean/editor/ui/dialogs/content/EdInsertTable.js