Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-03-18 14:32:14 +0300
committerGitHub <noreply@github.com>2019-03-18 14:32:14 +0300
commit8ed7474280caa7d09a7ebc0e54d92b31964633a3 (patch)
tree1dc21536904deba3aee3876abfbc48cfd626a17b
parent325b3dc21120219320703e7896db05839aa02385 (diff)
parentcd31038d0698ea1c305590359b88a2b56e6d1666 (diff)
Merge pull request #124 from nextcloud/fix/loadingv16.0.0beta3v16.0.0beta2v16.0.0beta1v16.0.0RC1
Fix viewing of PDF documents
-rw-r--r--js/previewplugin.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/js/previewplugin.js b/js/previewplugin.js
index 66a1882..fa9b229 100644
--- a/js/previewplugin.js
+++ b/js/previewplugin.js
@@ -118,7 +118,7 @@
actionHandler: function(fileName, context) {
var downloadUrl = context.fileList.getDownloadUrl(fileName, context.dir);
if (downloadUrl && downloadUrl !== '#') {
- self.show(downloadUrl, param, true);
+ self.show(downloadUrl, '', true);
}
}
});
@@ -135,6 +135,9 @@ $(document).ready(function(){
if ($('#isPublic').val() && $('#mimetype').val() === 'application/pdf') {
$.urlParam = function(name){
var results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(window.location.href);
+ if (results == null) {
+ return 0;
+ }
return results[1] || 0;
};
var sharingToken = $('#sharingToken').val();