diff options
| author | Jan Holesovsky <kendy@collabora.com> | 2019-03-13 09:55:08 +0100 |
|---|---|---|
| committer | Jan Holesovsky <kendy@collabora.com> | 2019-03-13 15:20:51 +0100 |
| commit | 5e0689156952bd9a7d568155102ace0712332764 (patch) | |
| tree | 9c6dde4d7b7a65616539fca7eb71af496f8def1d | |
| parent | e22dfdec5df5c88a4be6996e179dfe05f145a979 (diff) | |
Last modification: Show the pointer cursor only when revision history enabled.
Change-Id: I64ca1936f22fc94d887c01e7ccaca4a84154aa02
Reviewed-on: https://gerrit.libreoffice.org/69153
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
| -rw-r--r-- | loleaflet/css/menubar.css | 1 | ||||
| -rw-r--r-- | loleaflet/src/map/Map.js | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/loleaflet/css/menubar.css b/loleaflet/css/menubar.css index 4d750b8f5..f8ec2e3ba 100644 --- a/loleaflet/css/menubar.css +++ b/loleaflet/css/menubar.css @@ -317,5 +317,4 @@ padding: 8px 15px 7px 15px; z-index: 500; border: 1px solid transparent; - cursor: pointer; } diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js index deb38cb57..995376243 100644 --- a/loleaflet/src/map/Map.js +++ b/loleaflet/src/map/Map.js @@ -16,7 +16,7 @@ function moveObjectVertically(obj, diff) { } } -/* global closebutton vex $ _ */ +/* global closebutton vex revHistoryEnabled $ _ */ L.Map = L.Evented.extend({ options: { @@ -308,6 +308,10 @@ L.Map = L.Evented.extend({ // Replace menu button body with new content lastModButton.firstChild.innerHTML = ''; lastModButton.firstChild.appendChild(mainSpan); + + if (revHistoryEnabled) { + L.DomUtil.setStyle(lastModButton, 'cursor', 'pointer'); + } } }, |
