From 39d5d55d719730f42073df86d1103888598a9042 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szymon=20K=C5=82os?= Date: Tue, 7 Jul 2020 09:31:36 +0200 Subject: [PATCH] clipboard: no stub message when copy is disabled MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When copy is disabled don't put stub message about download button in the clipboard. Allow internal copy & paste when copy is disabled - so disable only external interaction. Change-Id: Ie7864abc8a239aa068880545cf09a48155ebbaea Reviewed-on: https://gerrit.libreoffice.org/c/online/+/98237 Tested-by: Jenkins Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos --- loleaflet/src/map/Clipboard.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/loleaflet/src/map/Clipboard.js b/loleaflet/src/map/Clipboard.js index 31a459aa2..694019246 100644 --- a/loleaflet/src/map/Clipboard.js +++ b/loleaflet/src/map/Clipboard.js @@ -139,6 +139,16 @@ L.Clipboard = L.Class.extend({ )); }, + // put in the clipboard if copy is disabled + _getCopyDisabledHtml: function() { + var lang = 'en_US'; // FIXME: l10n + return this._substProductName(this._originWrapBody( + ' \n' + + '

\n' + + ' \n', true + )); + }, + _getMetaOrigin: function (html) { var match = '