[Libreoffice-commits] online.git: loleaflet/js
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Tue Jan 8 21:04:53 UTC 2019
loleaflet/js/toolbar.js | 11 ++---------
1 file changed, 2 insertions(+), 9 deletions(-)
New commits:
commit 6435ef289586f8c539520a275e2f92914cce0c39
Author: Henry Castro <hcastro at collabora.com>
AuthorDate: Tue Jan 8 16:16:41 2019 -0400
Commit: Henry Castro <hcastro at collabora.com>
CommitDate: Tue Jan 8 16:51:31 2019 -0400
loleaflet: simplify code to show next and prev tool items
Change-Id: Id6a3f8862b9b4539fa2c47f4c91d0f0f781b1089
diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js
index acf248928..8909f13e5 100644
--- a/loleaflet/js/toolbar.js
+++ b/loleaflet/js/toolbar.js
@@ -851,14 +851,7 @@ function initMobileToolbar(toolItems) {
onClick(e, e.target);
hideTooltip(this, e.target);
},
- onRefresh: function(e) {
- var docType = map.getDocType();
- if (docType === 'presentation' && (e.target === 'prev' || e.target === 'next')) {
- if (this.get(e.target).hidden === true) {
- this.show(e.target);
- }
- }
-
+ onRefresh: function() {
var showUserList = map['wopi'].HideUserList !== null &&
map['wopi'].HideUserList !== undefined &&
$.inArray('true', map['wopi'].HideUserList) < 0 &&
@@ -1696,11 +1689,11 @@ function onDocLayerInit() {
]);
}
- break;
// FALLTHROUGH intended
case 'drawing':
toolbarUp.show('leftpara', 'centerpara', 'rightpara', 'justifypara', 'breakpara', 'linespacing',
'breakspacing', 'defaultbullet', 'defaultnumbering', 'breakbullet', 'inserttable');
+ statusbar.show('prev', 'next');
$('#presentation-toolbar').show();
break;
More information about the Libreoffice-commits
mailing list