зеркало из https://github.com/mozilla/pjs.git
remove debug only save attachment menubar
This commit is contained in:
Родитель
da4498e2b2
Коммит
7587ee2e54
|
@ -134,7 +134,6 @@ nsMimeXULEmitter::~nsMimeXULEmitter(void)
|
|||
delete mBodyFileSpec;
|
||||
}
|
||||
|
||||
|
||||
// Attachment handling routines
|
||||
nsresult
|
||||
nsMimeXULEmitter::StartAttachment(const char *name, const char *contentType, const char *url)
|
||||
|
@ -618,34 +617,6 @@ nsMimeXULEmitter::DumpAttachmentMenu()
|
|||
UtilityWriteCRLF("</menupopup>");
|
||||
UtilityWriteCRLF("</menu>");
|
||||
|
||||
UtilityWriteCRLF("<menu value=\"Save Attachment(s)\">");
|
||||
UtilityWriteCRLF("<menupopup>");
|
||||
|
||||
for (i=0; i<mAttachArray->Count(); i++)
|
||||
{
|
||||
attachmentInfoType *attachInfo = (attachmentInfoType
|
||||
*)mAttachArray->ElementAt(i);
|
||||
if (!attachInfo)
|
||||
continue;
|
||||
|
||||
UtilityWrite("<menuitem value=\"");
|
||||
UtilityWrite(attachInfo->displayName);
|
||||
UtilityWrite("\" oncommand=\"SaveAttachURL('");
|
||||
escapedUrl = nsEscape(attachInfo->urlSpec, url_Path);
|
||||
if (escapedUrl)
|
||||
{
|
||||
UtilityWrite(escapedUrl);
|
||||
nsCRT::free(escapedUrl);
|
||||
}
|
||||
else
|
||||
{
|
||||
UtilityWrite(attachInfo->urlSpec);
|
||||
}
|
||||
UtilityWriteCRLF("' );\" />");
|
||||
}
|
||||
UtilityWriteCRLF("</menupopup>");
|
||||
UtilityWriteCRLF("</menu>");
|
||||
|
||||
UtilityWriteCRLF("</menubar>");
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче