loleaflet/js/toolbar.js |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 969d85bf073bad52017925d96b7a004b76ea5c30
Author:     Samuel Mehrbrodt <samuel.mehrbr...@cib.de>
AuthorDate: Thu Nov 29 08:40:15 2018 +0100
Commit:     Thorsten Behrens <thorsten.behr...@cib.de>
CommitDate: Thu Nov 29 10:08:52 2018 +0100

    Show "Insert footnote" toolbar button only in Writer
    
    Change-Id: I542a43b27f8d3beddad4c932a79812b404da63b8
    (cherry picked from commit 2e7f67f33b44ccf53096351299ff9fc043f924ef)
    Reviewed-on: https://gerrit.libreoffice.org/64209
    Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>
    Tested-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/loleaflet/js/toolbar.js b/loleaflet/js/toolbar.js
index f4fc46c87..da07e9a74 100644
--- a/loleaflet/js/toolbar.js
+++ b/loleaflet/js/toolbar.js
@@ -1398,7 +1398,7 @@ function onDocLayerInit() {
 
        switch (docType) {
        case 'spreadsheet':
-               toolbarUp.remove('inserttable', 'styles', 'justifypara', 
'defaultbullet', 'defaultnumbering', 'break-numbering');
+               toolbarUp.remove('inserttable', 'styles', 'justifypara', 
'defaultbullet', 'defaultnumbering', 'break-numbering', 'insertfootnote');
                if (!_useSimpleUI()) {
                        statusbar.insert('left', [
                                {type: 'break', id:'break1'},
@@ -1470,7 +1470,7 @@ function onDocLayerInit() {
                if (!map['wopi'].HideExportOption) {
                        presentationToolbar.show('presentation', 
'presentationbreak');
                }
-               toolbarUp.remove('insertannotation', 'wraptextseparator', 
'wraptext', 'togglemergecells', 'break-toggle', 'numberformatcurrency', 
'numberformatpercent', 'numberformatdecimal', 'numberformatdate', 
'numberformatincdecimals', 'numberformatdecdecimals', 'break-number', 
'sortascending', 'sortdescending', 'setborderstyle', 
'conditionalformaticonset');
+               toolbarUp.remove('insertannotation', 'wraptextseparator', 
'wraptext', 'togglemergecells', 'break-toggle', 'numberformatcurrency', 
'numberformatpercent', 'numberformatdecimal', 'numberformatdate', 
'numberformatincdecimals', 'numberformatdecdecimals', 'break-number', 
'sortascending', 'sortdescending', 'setborderstyle', 
'conditionalformaticonset', 'insertfootnote');
                if (!_useSimpleUI()) {
                        statusbar.insert('left', [
                                {type: 'break', id: 'break1'},
@@ -1492,7 +1492,7 @@ function onDocLayerInit() {
 
                break;
        case 'drawing':
-               toolbarUp.remove('insertannotation', 'wraptextseparator', 
'wraptext', 'togglemergecells', 'break-toggle', 'numberformatcurrency', 
'numberformatpercent', 'numberformatdecimal', 'numberformatdate', 
'numberformatincdecimals', 'numberformatdecdecimals', 'break-number', 
'sortascending', 'sortdescending', 'setborderstyle', 
'conditionalformaticonset');
+               toolbarUp.remove('insertannotation', 'wraptextseparator', 
'wraptext', 'togglemergecells', 'break-toggle', 'numberformatcurrency', 
'numberformatpercent', 'numberformatdecimal', 'numberformatdate', 
'numberformatincdecimals', 'numberformatdecdecimals', 'break-number', 
'sortascending', 'sortdescending', 'setborderstyle', 
'conditionalformaticonset', 'insertfootnote');
 
                // Remove irrelevant toolbars
                $('#formulabar').hide();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to