Bug 1329455 - Bug 1319409 follow-up: fix JS error. r=aceman a=jorgk

This commit is contained in:
Jorg K 2017-01-10 09:01:32 +01:00
Родитель fbc4a42c31
Коммит 5074f64f87
3 изменённых файлов: 9 добавлений и 6 удалений

Просмотреть файл

@ -347,7 +347,7 @@ function AbPrintCardInternal(doPrintPreview, msgType)
statusFeedback = Components.classes["@mozilla.org/messenger/statusfeedback;1"].createInstance();
statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);
let selectionArray = new Array(numSelected);
let selectionArray = [];
for (let i = 0; i < numSelected; i++) {
let card = selectedItems[i];
@ -360,8 +360,8 @@ function AbPrintCardInternal(doPrintPreview, msgType)
printEngineWindow = window.openDialog("chrome://messenger/content/msgPrintEngine.xul",
"",
"chrome,dialog=no,all",
totalCard, selectionArray, statusFeedback,
doPrintPreview, msgType);
selectionArray.length, selectionArray,
statusFeedback, doPrintPreview, msgType);
return;
}

Просмотреть файл

@ -112,6 +112,9 @@ var gStartupPPObserver =
function ReplaceWithSelection()
{
if (!printOpener.content)
return;
var selection = printOpener.content.getSelection();
if ( selection != "" ) {

Просмотреть файл

@ -197,7 +197,7 @@ function AbPrintCardInternal(doPrintPreview, msgType)
statusFeedback = Components.classes["@mozilla.org/messenger/statusfeedback;1"].createInstance();
statusFeedback = statusFeedback.QueryInterface(Components.interfaces.nsIMsgStatusFeedback);
let selectionArray = new Array(numSelected);
let selectionArray = [];
for (let i = 0; i < numSelected; i++) {
let card = selectedItems[i];
@ -210,8 +210,8 @@ function AbPrintCardInternal(doPrintPreview, msgType)
printEngineWindow = window.openDialog("chrome://messenger/content/msgPrintEngine.xul",
"",
"chrome,dialog=no,all",
totalCard, selectionArray, statusFeedback,
doPrintPreview, msgType);
selectionArray.length, selectionArray,
statusFeedback, doPrintPreview, msgType);
return;
}