Fixed object properties bug 39649. r=sfraser

git-svn-id: svn://10.0.0.236/trunk@70791 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
cmanske%netscape.com
2000-05-25 03:34:20 +00:00
parent 05818ed551
commit c828e574cc
6 changed files with 268 additions and 84 deletions

View File

@@ -4930,11 +4930,20 @@ nsEditorShell::HandleMouseClickOnElement(nsIDOMElement *aElement, PRInt32 aClick
nsCOMPtr<nsIEditorController> composerController = do_QueryInterface(controller);
// Execute the command
nsAutoString commandName(NS_ConvertASCIItoUCS2("cmd_advancedProperties"));
nsAutoString commandName;
// In "All Tags" mode, use AdvancedProperties,
// in others use appriate object property dialog
if (mDisplayMode != eDisplayModeAllTags)
commandName = NS_ConvertASCIItoUCS2("cmd_objectProperties");
else
commandName = NS_ConvertASCIItoUCS2("cmd_advancedProperties");
rv = composerController->DoCommand(commandName.GetUnicode());
// We handled the message -- don't propogate to frames
if (NS_SUCCEEDED(rv))
*_retval = PR_FALSE;
*_retval = PR_TRUE;
}
return rv;