Skip to content

Commit

Permalink
Get correct path for pdf.js
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Sep 20, 2012
1 parent 359d49b commit 81ad2ae
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ckan/public/base/datapreview/resource.config
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
lte IE 8 = vendor/leaflet/0.4.4/leaflet.ie.css
lte IE 8 = vendor/flotr2/excanvas.js

[inline scripts]

pdf_src_inline =
// Find the root for the included script
PDFJS.workerSrc = $('body script[src*="/datapreview/"]').last().attr('src').replace(/\/[^:]*$/, '').replace(/\/:bundle:.*$/, '') + '/vendor/pdfjs/pdf.js';


[depends]

datapreview = vendor/jquery.js
Expand Down Expand Up @@ -42,7 +49,7 @@ pdfpreview =
vendor/pdfjs/pdf.js
vendor/pdfviewer/compatibility.js
vendor/pdfviewer/viewer.js

pdf_src_inline
pdfpreview.js

vendor/pdfviewer/viewer.css
Expand Down

0 comments on commit 81ad2ae

Please sign in to comment.