From bfabab35aee27e19caed6a8c4b52aeded3ccd8e6 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Tue, 7 Sep 1999 23:55:13 +0000 Subject: [PATCH] Fixed Insert Table dialog to not insert if properties are not valid git-svn-id: svn://10.0.0.236/trunk@46261 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/ui/dialogs/content/EdInsertTable.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/mozilla/editor/ui/dialogs/content/EdInsertTable.js b/mozilla/editor/ui/dialogs/content/EdInsertTable.js index c347c810bf8..4b28e40b6c4 100644 --- a/mozilla/editor/ui/dialogs/content/EdInsertTable.js +++ b/mozilla/editor/ui/dialogs/content/EdInsertTable.js @@ -151,10 +151,9 @@ function onOK() } } } + // Don't delete selected text when inserting + editorShell.InsertElement(tableElement, false); + return true; } - - // Don't delete selected text when inserting - editorShell.InsertElement(tableElement, false); - - return true; + return false; }