[Pkg-javascript-commits] [pdf.js] 44/116: Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup)
David Prévot
taffit at moszumanska.debian.org
Fri Mar 6 16:19:59 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository pdf.js.
commit af6170ffd0bbac91a4b85df02d4bb3db87719a2a
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date: Tue Jan 13 09:38:34 2015 +0100
Attempt to display the File size quicker in the Document Properties dialog (PR 5554 followup)
---
web/viewer.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/viewer.js b/web/viewer.js
index f83f321..806c9f0 100644
--- a/web/viewer.js
+++ b/web/viewer.js
@@ -403,6 +403,10 @@ var PDFViewerApplication = {
PDFViewerApplication.open(args.pdfUrl, 0, undefined,
pdfDataRangeTransport);
+
+ if (args.length) {
+ DocumentProperties.setFileSize(args.length);
+ }
break;
case 'range':
pdfDataRangeTransport.onDataRange(args.begin, args.chunk);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git
More information about the Pkg-javascript-commits
mailing list