From: gigaherz Date: Fri, 30 Mar 2012 22:48:06 +0000 (+0200) Subject: Merge branch 'master' of https://github.com/mozilla/pdf.js into title-mods X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=211c63f58798fa75fe704ae42b8e5a073d1c20a1;p=pdf.js.git Merge branch 'master' of https://github.com/mozilla/pdf.js into title-mods --- 211c63f58798fa75fe704ae42b8e5a073d1c20a1 diff --cc web/viewer.js index 389eee6,9f4c085..d133b09 --- a/web/viewer.js +++ b/web/viewer.js @@@ -267,10 -300,12 +309,14 @@@ var PDFView = }, open: function pdfViewOpen(url, scale) { - document.title = this.url = url; + this.url = url; + + document.title = getFileName(url) || url; + if (!PDFView.loadingBar) { + PDFView.loadingBar = new ProgressBar('#loadingBar', {}); + } + var self = this; PDFJS.getPdf( {