diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-07 15:01:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-07 15:01:37 +0100 |
commit | 836ba4f4192d042921507f9eea4ff69b4d54480e (patch) | |
tree | 0ebdf3bde521a8af9b89e0d2339044d8a075f155 /apps/files_sharing/js | |
parent | b56cb41e2fc5bd8ec4ef4661009b6feb4c75b7dc (diff) | |
parent | 463dfb50d98b4bc39fc6d2e624c34dcb05c04bb1 (diff) | |
download | nextcloud-server-836ba4f4192d042921507f9eea4ff69b4d54480e.tar.gz nextcloud-server-836ba4f4192d042921507f9eea4ff69b4d54480e.zip |
Merge pull request #11569 from nextcloud/bug-11514/hide-header-actions-for-filedrops
Hides the header actions for file drops
Diffstat (limited to 'apps/files_sharing/js')
-rw-r--r-- | apps/files_sharing/js/public.js | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/apps/files_sharing/js/public.js b/apps/files_sharing/js/public.js index 2bd550a3b5c..c7169b3ce12 100644 --- a/apps/files_sharing/js/public.js +++ b/apps/files_sharing/js/public.js @@ -89,7 +89,7 @@ OCA.Sharing.PublicApp = { displayName: t('files', 'Delete'), iconClass: 'icon-delete', } - ] + ] } ); this.files = OCA.Files.Files; @@ -297,10 +297,24 @@ OCA.Sharing.PublicApp = { } }); + self._bindShowTermsAction(); + // legacy window.FileList = this.fileList; }, + /** + * Binds the click action for the "terms of service" action. + * Shows an OC info dialog on click. + * + * @private + */ + _bindShowTermsAction: function() { + $('#show-terms-dialog').on('click', function() { + OC.dialogs.info($('#disclaimerText').val(), t('files_sharing', 'Terms of service')); + }); + }, + _showTextPreview: function (data, previewHeight) { var textDiv = $('<div/>').addClass('text-preview'); textDiv.text(data); |