commit
432bfd5bf1
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue