зеркало из https://github.com/mozilla/pjs.git
seamonkey part of fix for 269725 get new messages status needs to get displayed in window command was executed in, sr=mscott
This commit is contained in:
Родитель
fad868297e
Коммит
267c1afd03
|
@ -41,18 +41,25 @@ function DoRDFCommand(dataSource, command, srcArray, argumentArray)
|
|||
{
|
||||
var commandResource = RDF.GetResource(command);
|
||||
if(commandResource) {
|
||||
try {
|
||||
dataSource.DoCommand(srcArray, commandResource, argumentArray);
|
||||
}
|
||||
catch(e) {
|
||||
if (command == "http://home.netscape.com/NC-rdf#NewFolder") {
|
||||
throw(e); // so that the dialog does not automatically close.
|
||||
}
|
||||
dump("Exception : In mail commands" + e + "\n");
|
||||
}
|
||||
try {
|
||||
if (!argumentArray)
|
||||
argumentArray = Components.classes["@mozilla.org/supports-array;1"]
|
||||
.createInstance(Components.interfaces.nsISupportsArray);
|
||||
|
||||
if (argumentArray)
|
||||
argumentArray.AppendElement(msgWindow);
|
||||
dataSource.DoCommand(srcArray, commandResource, argumentArray);
|
||||
}
|
||||
catch(e) {
|
||||
if (command == "http://home.netscape.com/NC-rdf#NewFolder") {
|
||||
throw(e); // so that the dialog does not automatically close.
|
||||
}
|
||||
dump("Exception : In mail commands" + e + "\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function GetNewMessages(selectedFolders, server, compositeDataSource)
|
||||
{
|
||||
var numFolders = selectedFolders.length;
|
||||
|
|
Загрузка…
Ссылка в новой задаче