From a9f7fc4489654956449d58512f0ee03c1cc9a24d Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Tue, 1 Sep 2020 11:58:50 +0300 Subject: [PATCH] [DE] Bug 46347 Disable adding shape to endnote/footnote --- apps/documenteditor/main/app/controller/Toolbar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index c14a0e852..fdfc7eab1 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -831,12 +831,12 @@ define([ need_disable = toolbar.mnuPageNumCurrentPos.isDisabled() && toolbar.mnuPageNumberPosPicker.isDisabled() || control_plain; toolbar.mnuInsertPageNum.setDisabled(need_disable); - var in_footnote = this.api.asc_IsCursorInFootnote(); + var in_footnote = this.api.asc_IsCursorInFootnote() || this.api.asc_IsCursorInEndnote(); need_disable = paragraph_locked || header_locked || in_header || in_image || in_equation && !btn_eq_state || in_footnote || in_control || rich_edit_lock || plain_edit_lock || rich_del_lock || plain_del_lock; toolbar.btnsPageBreak.setDisabled(need_disable); toolbar.btnBlankPage.setDisabled(need_disable); - need_disable = paragraph_locked || header_locked || in_equation || control_plain || content_locked; + need_disable = paragraph_locked || header_locked || in_equation || control_plain || content_locked || in_footnote; toolbar.btnInsertShape.setDisabled(need_disable); toolbar.btnInsertText.setDisabled(need_disable);