From b1685e2a9013118255a45698d122da0c02e9f2ab Mon Sep 17 00:00:00 2001 From: "brade%netscape.com" Date: Thu, 5 Oct 2000 15:02:26 +0000 Subject: [PATCH] Remove disabled attribute rather than setting to false; moving fix from branch to trunk. git-svn-id: svn://10.0.0.236/trunk@80450 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/dialogs/content/EdTableProps.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mozilla/editor/ui/dialogs/content/EdTableProps.js b/mozilla/editor/ui/dialogs/content/EdTableProps.js index ce91d6c8bdd..9d2c04118b0 100644 --- a/mozilla/editor/ui/dialogs/content/EdTableProps.js +++ b/mozilla/editor/ui/dialogs/content/EdTableProps.js @@ -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)