|
|
|
@ -49,6 +49,7 @@ showPDFviewer.lastTitle=''; |
|
|
|
|
showPDFviewer.loaded=false; |
|
|
|
|
|
|
|
|
|
$(document).ready(function(){ |
|
|
|
|
if(!$.browser.msie){//doesnt work on IE
|
|
|
|
|
if(location.href.indexOf("files")!=-1) { |
|
|
|
|
PDFJS.workerSrc = OC.filePath('files_pdfviewer','js','pdfjs/build/pdf.js'); |
|
|
|
|
if(typeof FileActions!=='undefined'){ |
|
|
|
@ -58,4 +59,5 @@ $(document).ready(function(){ |
|
|
|
|
FileActions.setDefault('application/pdf','Edit'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|