1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-19 07:27:56 +00:00

[pdf full view] fixed 'images' path bug

This commit is contained in:
llj 2014-06-19 15:39:48 +08:00
parent 07933dfc14
commit 536990add6
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ var FindStates = {
FIND_PENDING: 3 FIND_PENDING: 3
}; };
PDFJS.imageResourcesPath = './images/'; //PDFJS.imageResourcesPath = './images/';
//PDFJS.workerSrc = '../build/pdf.worker.js'; //PDFJS.workerSrc = '../build/pdf.worker.js';
PDFJS.cMapUrl = '../web/cmaps/'; PDFJS.cMapUrl = '../web/cmaps/';
PDFJS.cMapPacked = true; PDFJS.cMapPacked = true;

View File

@ -32,6 +32,7 @@ http://sourceforge.net/adobe/cmap/wiki/License/
<script type="text/javascript"> <script type="text/javascript">
// by lj. Thu Jun 19 11:07:13 CST 2014 // by lj. Thu Jun 19 11:07:13 CST 2014
var DEFAULT_URL = '{{ file_src }}'; var DEFAULT_URL = '{{ file_src }}';
PDFJS.imageResourcesPath = '{{ MEDIA_URL }}pdf_full_view/images/';
PDFJS.workerSrc = '{{ MEDIA_URL }}js/pdf.worker.js'; PDFJS.workerSrc = '{{ MEDIA_URL }}js/pdf.worker.js';
PDFJS.disableRange = true; PDFJS.disableRange = true;
</script> </script>