From 8739b154d38a98d918d1006bc89d50694091fe03 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 --- editor/ui/dialogs/content/EdInsertTable.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/editor/ui/dialogs/content/EdInsertTable.js b/editor/ui/dialogs/content/EdInsertTable.js index c347c810bf81..4b28e40b6c4b 100644 --- a/editor/ui/dialogs/content/EdInsertTable.js +++ b/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; }