1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

Merge pull request #5693 from collinanderson/whitespace

cleaned whitespace
This commit is contained in:
Jonas Jenwald 2015-02-28 10:09:21 +01:00
commit 00ee6bd6b6
89 changed files with 56 additions and 126 deletions

View file

@ -152,7 +152,7 @@ var DocumentProperties = {
parseDate: function documentPropertiesParseDate(inputDate) {
// This is implemented according to the PDF specification (see
// http://www.gnupdf.org/Date for an overview), but note that
// http://www.gnupdf.org/Date for an overview), but note that
// Adobe Reader doesn't handle changing the date to universal time
// and doesn't use the user's time zone (they're effectively ignoring
// the HH' and mm' parts of the date string).

View file

@ -89,7 +89,7 @@ var DownloadManager = (function DownloadManagerClosure() {
downloadData: function DownloadManager_downloadData(data, filename,
contentType) {
var blobUrl = PDFJS.createObjectURL(data, contentType);
FirefoxCom.request('download', {
blobUrl: blobUrl,
originalUrl: blobUrl,

View file

@ -163,4 +163,3 @@ var PDFFindBar = (function PDFFindBarClosure() {
};
return PDFFindBar;
})();

View file

@ -301,7 +301,7 @@ var PDFFindController = (function PDFFindControllerClosure() {
if (this.pagesToSearch < 0) {
// No point in wrapping again, there were no matches.
this.updateMatch(false);
// while matches were not found, searching for a page
// while matches were not found, searching for a page
// with matches should nevertheless halt.
return true;
}
@ -354,7 +354,7 @@ var PDFFindController = (function PDFFindControllerClosure() {
offset.matchIdx = null;
this.pagesToSearch--;
if (offset.pageIdx >= numPages || offset.pageIdx < 0) {
offset.pageIdx = (previous ? numPages - 1 : 0);
offset.wrapped = true;
@ -365,7 +365,7 @@ var PDFFindController = (function PDFFindControllerClosure() {
var state = FindStates.FIND_NOTFOUND;
var wrapped = this.offset.wrapped;
this.offset.wrapped = false;
if (found) {
var previousPage = this.selected.pageIdx;
this.selected.pageIdx = this.offset.pageIdx;
@ -376,7 +376,7 @@ var PDFFindController = (function PDFFindControllerClosure() {
this.updatePage(previousPage);
}
}
this.updateUIState(state, this.state.findPrevious);
if (this.selected.pageIdx !== -1) {
this.updatePage(this.selected.pageIdx);
@ -398,4 +398,3 @@ var PDFFindController = (function PDFFindControllerClosure() {
};
return PDFFindController;
})();

View file

@ -190,7 +190,7 @@ http://sourceforge.net/adobe/cmap/wiki/License/
<button id="toggleHandTool" class="secondaryToolbarButton handTool" title="Enable hand tool" tabindex="60" data-l10n-id="hand_tool_enable">
<span data-l10n-id="hand_tool_enable_label">Enable hand tool</span>
</button>
<div class="horizontalToolbarSeparator"></div>
<button id="documentProperties" class="secondaryToolbarButton documentProperties" title="Document Properties…" tabindex="61" data-l10n-id="document_properties">
@ -245,10 +245,10 @@ http://sourceforge.net/adobe/cmap/wiki/License/
</a>
<div class="verticalToolbarSeparator hiddenSmallView"></div>
<button id="secondaryToolbarToggle" class="toolbarButton" title="Tools" tabindex="36" data-l10n-id="tools">
<span data-l10n-id="tools_label">Tools</span>
</button>
</button>
</div>
<div class="outerCenter">
<div class="innerCenter" id="toolbarViewerMiddle">