diff options
author | Morris Jobke <hey@morrisjobke.de> | 2017-05-01 23:42:27 +0300 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-05-01 23:42:27 +0300 |
commit | 13b592c548cda16be8c189fde831e0708b061274 (patch) | |
tree | 91bc45f86d7087c0faf402265042095f723f100e | |
parent | ad93d2f0e0aa2e7ca02240e93053ba0f56281eae (diff) |
Drop IE8 compatibility
* removes dependency on jquery-migrate.js
* see nextcloud/server#4628
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
-rw-r--r-- | js/previewplugin.js | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/js/previewplugin.js b/js/previewplugin.js index e5518b4..8d343cb 100644 --- a/js/previewplugin.js +++ b/js/previewplugin.js @@ -121,21 +121,15 @@ })(OCA); -// Doesn't work with IE below 9 -if(!$.browser.msie || ($.browser.msie && $.browser.version >= 9)){ - OC.Plugins.register('OCA.Files.FileList', OCA.FilesPdfViewer.PreviewPlugin); -} +OC.Plugins.register('OCA.Files.FileList', OCA.FilesPdfViewer.PreviewPlugin); // FIXME: Hack for single public file view since it is not attached to the fileslist $(document).ready(function(){ - // Doesn't work with IE below 9 - if(!$.browser.msie || ($.browser.msie && $.browser.version >= 9)){ - if ($('#isPublic').val() && $('#mimetype').val() === 'application/pdf') { - var sharingToken = $('#sharingToken').val(); - var downloadUrl = OC.generateUrl('/s/{token}/download', {token: sharingToken}); - var viewer = OCA.FilesPdfViewer.PreviewPlugin; - viewer.show(downloadUrl, false); - } + if ($('#isPublic').val() && $('#mimetype').val() === 'application/pdf') { + var sharingToken = $('#sharingToken').val(); + var downloadUrl = OC.generateUrl('/s/{token}/download', {token: sharingToken}); + var viewer = OCA.FilesPdfViewer.PreviewPlugin; + viewer.show(downloadUrl, false); } }); |