summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2012-07-09 23:48:06 +0200
committerThomas Mueller <thomas.mueller@tmit.eu>2012-07-09 23:50:26 +0200
commitb97eb3a48fab0ca166d00c4f8c0499f96983256b (patch)
tree5ca6cc94f45dc63167644038df8244920859388d /apps
parent43f00a2dc85b4d7ceba8e7a13941b0deb409b842 (diff)
downloadnextcloud-server-b97eb3a48fab0ca166d00c4f8c0499f96983256b.tar.gz
nextcloud-server-b97eb3a48fab0ca166d00c4f8c0499f96983256b.zip
fixing oc-1198
Diffstat (limited to 'apps')
-rw-r--r--apps/files_pdfviewer/js/pdfjs/viewer.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/apps/files_pdfviewer/js/pdfjs/viewer.js b/apps/files_pdfviewer/js/pdfjs/viewer.js
index f49257d7929..90dd1eef020 100644
--- a/apps/files_pdfviewer/js/pdfjs/viewer.js
+++ b/apps/files_pdfviewer/js/pdfjs/viewer.js
@@ -1432,7 +1432,7 @@ var DocumentOutlineView = function documentOutlineView(outline) {
queue.push({parent: itemsDiv, items: item.items});
}
- levelData.parent.appendChild(div);
+// levelData.parent.appendChild(div);
}
}
};
@@ -1751,10 +1751,9 @@ function updateThumbViewArea() {
}
window.addEventListener('resize', function webViewerResize(evt) {
- if (PDFView.initialized &&
+ if (PDFView.initialized && PDFView.active &&
(document.getElementById('pageWidthOption').selected ||
- document.getElementById('pageFitOption').selected ||
- document.getElementById('pageAutoOption').selected))
+ document.getElementById('pageFitOption').selected ))
PDFView.parseScale(document.getElementById('scaleSelect').value);
updateViewarea();
});
@@ -1788,8 +1787,8 @@ window.addEventListener('change', function webViewerChange(evt) {
document.title = file.name;
// URL does not reflect proper document location - hiding some icons.
- document.getElementById('viewBookmark').setAttribute('hidden', 'true');
- document.getElementById('download').setAttribute('hidden', 'true');
+// document.getElementById('viewBookmark').setAttribute('hidden', 'true');
+// document.getElementById('download').setAttribute('hidden', 'true');
}, true);
function selectScaleOption(value) {