зеркало из https://github.com/mozilla/pjs.git
Bug 228529 JS Warnings in printing/print preview
r=neil sr=bz
This commit is contained in:
Родитель
f104bee203
Коммит
c5e776e69f
|
@ -26,6 +26,7 @@ var printEngineWindow;
|
|||
var printEngine;
|
||||
var printSettings = null;
|
||||
var doingPrintPreview = false;
|
||||
var gWebProgress;
|
||||
|
||||
const kMsgBundle = "chrome://messenger/locale/messenger.properties";
|
||||
|
||||
|
|
|
@ -290,7 +290,7 @@
|
|||
}
|
||||
else
|
||||
{
|
||||
var total = print.printPreviewNumPages;
|
||||
total = print.printPreviewNumPages;
|
||||
|
||||
// bounds check potentially user-entered number
|
||||
if (aPageNum > 0 && aPageNum <= total)
|
||||
|
@ -401,7 +401,7 @@
|
|||
var webBrowserPrint;
|
||||
var domWin;
|
||||
try {
|
||||
var ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
|
||||
ifreq = _content.QueryInterface(Components.interfaces.nsIInterfaceRequestor);
|
||||
domWin = ifreq.QueryInterface(Components.interfaces.nsIDOMWindow);
|
||||
} catch (e) {
|
||||
// Pressing cancel is expressed as an NS_ERROR_ABORT return value,
|
||||
|
|
|
@ -39,6 +39,8 @@
|
|||
* ***** END LICENSE BLOCK ***** */
|
||||
|
||||
var gPrintSettings = null;
|
||||
var gPrintSettingsAreGlobal;
|
||||
var gSavePrintSettings;
|
||||
|
||||
function setPrinterDefaultsForSelectedPrinter(aPrintService)
|
||||
{
|
||||
|
|
|
@ -45,12 +45,10 @@ function elipseString(aStr, doFront)
|
|||
if (aStr.length > fixedLen) {
|
||||
if (doFront) {
|
||||
var endStr = aStr.substr(aStr.length-fixedLen, fixedLen);
|
||||
var str = "..." + endStr;
|
||||
return str;
|
||||
return "..." + endStr;
|
||||
} else {
|
||||
var frontStr = aStr.substr(0, fixedLen);
|
||||
var str = frontStr + "...";
|
||||
return str;
|
||||
return frontStr + "...";
|
||||
}
|
||||
}
|
||||
return aStr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче