зеркало из 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);
|
var commandResource = RDF.GetResource(command);
|
||||||
if(commandResource) {
|
if(commandResource) {
|
||||||
try {
|
try {
|
||||||
dataSource.DoCommand(srcArray, commandResource, argumentArray);
|
if (!argumentArray)
|
||||||
}
|
argumentArray = Components.classes["@mozilla.org/supports-array;1"]
|
||||||
catch(e) {
|
.createInstance(Components.interfaces.nsISupportsArray);
|
||||||
if (command == "http://home.netscape.com/NC-rdf#NewFolder") {
|
|
||||||
throw(e); // so that the dialog does not automatically close.
|
if (argumentArray)
|
||||||
}
|
argumentArray.AppendElement(msgWindow);
|
||||||
dump("Exception : In mail commands" + e + "\n");
|
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)
|
function GetNewMessages(selectedFolders, server, compositeDataSource)
|
||||||
{
|
{
|
||||||
var numFolders = selectedFolders.length;
|
var numFolders = selectedFolders.length;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче