Composer's table cell properties' dialog did not allow to reset width and hight and the switch between TD and TH did not work (regression): b=230165, r=timeless, sr=dbaron

This commit is contained in:
daniel%glazman.org 2004-01-09 20:52:07 +00:00
Родитель e2859af89c
Коммит 9611f22db6
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -2061,7 +2061,7 @@ nsHTMLEditor::SwitchTableCellHeaderType(nsIDOMElement *aSourceCell, nsIDOMElemen
// Set to the opposite of current type
nsCOMPtr<nsIAtom> atom = nsEditor::GetTag(aSourceCell);
nsString newCellType( (atom == nsEditProperty::th) ? NS_LITERAL_STRING("th") : NS_LITERAL_STRING("td"));
nsString newCellType( (atom == nsEditProperty::td) ? NS_LITERAL_STRING("th") : NS_LITERAL_STRING("td"));
// This creates new node, moves children, copies attributes (PR_TRUE)
// and manages the selection!

Просмотреть файл

@ -122,7 +122,7 @@ function ValidateNumber(inputWidget, listWidget, minVal, maxVal, element, attNam
element.setAttribute(attName, numString);
}
} else if (element) {
element.removeAttribute(attName);
GetCurrentEditor().removeAttributeOrEquivalent(element, attName, true)
}
return numString;
}