mirror of
https://github.com/nextcloud/server.git
synced 2024-08-23 05:56:02 +02:00
dont load pdfview for ie
This commit is contained in:
parent
5f7727629a
commit
36d696c30d
@ -49,13 +49,15 @@ showPDFviewer.lastTitle='';
|
||||
showPDFviewer.loaded=false;
|
||||
|
||||
$(document).ready(function(){
|
||||
if(location.href.indexOf("files")!=-1) {
|
||||
PDFJS.workerSrc = OC.filePath('files_pdfviewer','js','pdfjs/build/pdf.js');
|
||||
if(typeof FileActions!=='undefined'){
|
||||
FileActions.register('application/pdf','Edit','',function(filename){
|
||||
showPDFviewer($('#dir').val(),filename);
|
||||
});
|
||||
FileActions.setDefault('application/pdf','Edit');
|
||||
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'){
|
||||
FileActions.register('application/pdf','Edit','',function(filename){
|
||||
showPDFviewer($('#dir').val(),filename);
|
||||
});
|
||||
FileActions.setDefault('application/pdf','Edit');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user