[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-4' - loleaflet/src

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Mar 12 20:24:00 UTC 2019


 loleaflet/src/control/Control.Menubar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3640adeae109119b4013035b2a1b27935693b0b5
Author:     Jan Holesovsky <kendy at collabora.com>
AuthorDate: Tue Mar 12 17:04:50 2019 +0100
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Tue Mar 12 21:23:42 2019 +0100

    Send the UI_FileVersions only when the revision history is enabled.
    
    Change-Id: I03a1a27c6a09ff34a6ff828b4903785ae342abc8
    Reviewed-on: https://gerrit.libreoffice.org/69112
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
    Tested-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index f97772ca8..ad5388b92 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -769,7 +769,7 @@ L.Control.Menubar = L.Control.extend({
 			this._map.showLOAboutDialog();
 		} else if (id === 'keyboard-shortcuts') {
 			this._map.showLOKeyboardHelp();
-		} else if (id === 'rev-history' || id === 'last-mod') {
+		} else if (revHistoryEnabled && (id === 'rev-history' || id === 'last-mod')) {
 			// if we are being loaded inside an iframe, ask
 			// our host to show revision history mode
 			this._map.fire('postMessage', {msgId: 'rev-history', args: {Deprecated: true}});


More information about the Libreoffice-commits mailing list