зеркало из https://github.com/mozilla/pjs.git
fix for #129164. regression "print address book" does nothing, r=ducarroz, sr=bievenu, a=asa,shaver
This commit is contained in:
Родитель
05677fad63
Коммит
91fecccc24
|
@ -317,7 +317,7 @@ function AbPrintCard()
|
|||
}
|
||||
}
|
||||
|
||||
if (gPrintSettings == null) {
|
||||
if (!gPrintSettings) {
|
||||
gPrintSettings = GetPrintSettings();
|
||||
}
|
||||
|
||||
|
@ -354,10 +354,14 @@ function AbPrintAddressBook()
|
|||
var abURIArr = uri.split("://");
|
||||
var printUrl = "addbook://" + abURIArr[0] + "/" + abURIArr[1] + "?action=print"
|
||||
|
||||
if (!gPrintSettings) {
|
||||
gPrintSettings = GetPrintSettings();
|
||||
}
|
||||
|
||||
printEngineWindow = window.openDialog("chrome://messenger/content/msgPrintEngine.xul",
|
||||
"",
|
||||
"chrome,dialog=no,all",
|
||||
1, [printUrl], statusFeedback);
|
||||
1, [printUrl], statusFeedback, gPrintSettings);
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче