diff options
| author | Jan Holesovsky <kendy@collabora.com> | 2019-03-12 17:04:50 +0100 |
|---|---|---|
| committer | Jan Holesovsky <kendy@collabora.com> | 2019-03-13 15:17:28 +0100 |
| commit | e22dfdec5df5c88a4be6996e179dfe05f145a979 (patch) | |
| tree | 3170d7829360d2204af552f53aa3ccf4df605d27 | |
| parent | 3071f774e615c19239158c629c29cdb045cfff68 (diff) | |
Send the UI_FileVersions only when the revision history is enabled.
Change-Id: I03a1a27c6a09ff34a6ff828b4903785ae342abc8
Reviewed-on: https://gerrit.libreoffice.org/69113
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
| -rw-r--r-- | loleaflet/src/control/Control.Menubar.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js index d645c4990..872f1d340 100644 --- a/loleaflet/src/control/Control.Menubar.js +++ b/loleaflet/src/control/Control.Menubar.js @@ -770,7 +770,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}}); |
