mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Remove disabled attribute rather than setting to false; moving fix from branch to trunk.
This commit is contained in:
parent
4dcf5242bd
commit
1aa1c20d18
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user