summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-05-02 23:28:04 -0400
committerAshod Nakashian <ashod.nakashian@collabora.co.uk>2019-09-03 01:53:12 -0400
commit3d4f148a56324ceafb1a1688bb4dee8ef7591d61 (patch)
treed4145d9544d67892e9b79d1991ac544fe677077a
parent652ae5c68f7d494293bc486ecae56c30f2f971c8 (diff)
leaflet: Enable sidebar in writer and calc
Does not actually show the sidebar yet... Change-Id: Iadddba04bbdb96159e84ffd1498a0845b32e1590 (cherry picked from commit b999c6fe6d080131f96dec34b11075164ae1d9e1)
-rw-r--r--loleaflet/src/map/Map.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 1828fabb7..6513f40ac 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -257,17 +257,15 @@ L.Map = L.Evented.extend({
// Show sidebar.
if (this._docLayer && !window.mode.isMobile() && !window.mode.isTablet() &&
- (this._docLayer._docType === 'spreadsheet' || this._docType === 'text')) {
+ (this._docLayer._docType === 'spreadsheet' || this._docLayer._docType === 'text')) {
// Let the first page finish loading then load the sidebar.
var map = this;
setTimeout(function () {
// This triggers all sidebar decks, so they would
// be loaded and show rather quickly on first use.
// Also, triggers sidebar window creation in the client.
- map._socket.sendMessage('uno .uno:MasterSlidesPanel');
- map._socket.sendMessage('uno .uno:CustomAnimation');
- map._socket.sendMessage('uno .uno:SlideChangeWindow');
- map._socket.sendMessage('uno .uno:ModifyPage');
+ map._socket.sendMessage('uno .uno:ViewSidebarStyles');
+ map._socket.sendMessage('uno .uno:Sidebar');
}, 200);
}
}, this);