Remove disabled attribute rather than setting to false; moving fix from branch to trunk.

This commit is contained in:
brade%netscape.com 2000-10-05 15:02:26 +00:00
parent 4dcf5242bd
commit 1aa1c20d18

View File

@ -754,9 +754,16 @@ function SetSelectionButtons()
function SetSpanEnable()
{
// If entire row is selected, don't allow changing colspan...
dialog.RowSpanInput.setAttribute("disabled", (SelectedCellsType == SELECT_COLUMN) ? "true" : "false");
if ( SelectedCellsType == SELECT_COLUMN )
dialog.RowSpanInput.setAttribute("disabled", "true");
else
dialog.RowSpanInput.removeAttribute("disabled");
// ...and similarly:
dialog.ColSpanInput.setAttribute("disabled", (SelectedCellsType == SELECT_ROW) ? "true" : "false");
if ( SelectedCellsType == SELECT_ROW )
dialog.ColSpanInput.setAttribute("disabled", "true");
else
dialog.ColSpanInput.removeAttribute("disabled");
}
function SwitchPanel(newPanel)