loleaflet/src/map/handler/Map.WOPI.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 7047b9b681942309403b31aaac07cf8440009cec Author: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> AuthorDate: Mon Dec 10 15:26:47 2018 +0100 Commit: Samuel Mehrbrodt <samuel.mehrbr...@cib.de> CommitDate: Mon Dec 10 15:26:47 2018 +0100 Fix Show_Button / Hide_Button Was broken with 131f3e9b6b3f3ee48de6be056a07e46b6bf40e94 Change-Id: I88e607cb005e3acfc80c12e87db1ac3e1258fb5a diff --git a/loleaflet/src/map/handler/Map.WOPI.js b/loleaflet/src/map/handler/Map.WOPI.js index a8bc65fa9..1eb422cbc 100644 --- a/loleaflet/src/map/handler/Map.WOPI.js +++ b/loleaflet/src/map/handler/Map.WOPI.js @@ -196,14 +196,14 @@ L.Map.WOPI = L.Handler.extend({ console.log('No toolbar in readonly mode - ignoring Remove_Button request.'); return; } - if (!w2ui['toolbar-up'].get(msg.Values.id)) { + if (!w2ui['editbar'].get(msg.Values.id)) { console.error('Toolbar button with id "' + msg.Values.id + '" not found.'); return; } if (msg.MessageId === 'Show_Button') { - w2ui['toolbar-up'].show(msg.Values.id); + w2ui['editbar'].show(msg.Values.id); } else { - w2ui['toolbar-up'].hide(msg.Values.id); + w2ui['editbar'].hide(msg.Values.id); } } else if (msg.MessageId === 'Set_Settings') { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits