From 3f22cb380a5e2163a61856be6e61627ee711ca22 Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Wed, 15 Mar 2017 03:47:12 -0300 Subject: [PATCH] refs #11 no file context menu if in share page --- js/filetypes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/filetypes.js b/js/filetypes.js index 55b5ed8..f9fc8b8 100644 --- a/js/filetypes.js +++ b/js/filetypes.js @@ -1,6 +1,6 @@ $(document).ready(function() { - if (OCA.Files && OCA.Files.fileActions) { + if (OCA.Files && OCA.Files.fileActions && !$('#sharingToken').val()) { function openFile(file, data){ var url = OC.generateUrl('apps/gpxedit/?file={filepath}',{'filepath': data.dir+'/'+file});