Decode the filename when assigning to title.

This commit is contained in:
gigaherz 2012-03-31 01:23:53 +02:00
parent 211c63f587
commit 2283f0bac1

View File

@ -311,7 +311,7 @@ var PDFView = {
open: function pdfViewOpen(url, scale) { open: function pdfViewOpen(url, scale) {
this.url = url; this.url = url;
document.title = getFileName(url) || url; document.title = decodeURIComponent(getFileName(url)) || url;
if (!PDFView.loadingBar) { if (!PDFView.loadingBar) {
PDFView.loadingBar = new ProgressBar('#loadingBar', {}); PDFView.loadingBar = new ProgressBar('#loadingBar', {});