From f92ad5f0157d5b87bea91523ff9b9608f19224af Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Wed, 25 Sep 2019 10:56:07 +0300 Subject: [PATCH] =?UTF-8?q?[DE]=20Bug=C2=A036794=20(Insert=20number=20of?= =?UTF-8?q?=20pages)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/documenteditor/main/app/controller/Toolbar.js | 1 + apps/documenteditor/main/app/view/Toolbar.js | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/documenteditor/main/app/controller/Toolbar.js b/apps/documenteditor/main/app/controller/Toolbar.js index ee2962a19..8b871593c 100644 --- a/apps/documenteditor/main/app/controller/Toolbar.js +++ b/apps/documenteditor/main/app/controller/Toolbar.js @@ -320,6 +320,7 @@ define([ toolbar.btnEditHeader.menu.on('item:click', _.bind(this.onEditHeaderFooterClick, this)); toolbar.mnuPageNumCurrentPos.on('click', _.bind(this.onPageNumCurrentPosClick, this)); toolbar.mnuInsertPageCount.on('click', _.bind(this.onInsertPageCountClick, this)); + toolbar.mnuInsertNumberOfPage.on('click', _.bind(this.onInsertPageCountClick, this)); toolbar.btnBlankPage.on('click', _.bind(this.onBtnBlankPageClick, this)); toolbar.listStyles.on('click', _.bind(this.onListStyleSelect, this)); toolbar.listStyles.on('contextmenu', _.bind(this.onListStyleContextMenu, this)); diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 03a5d5dff..d7328c6be 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -1665,7 +1665,10 @@ define([ new Common.UI.Menu({ items: [ {caption: this.capInsertPageNumber, value: 'insertpagenumber'}, - {caption: this.capInsertNumberOfPages, value: 'insertnumberofpage'} + this.mnuInsertNumberOfPage = new Common.UI.MenuItem({ + caption: this.textInsertPageCount, + value: 'insertnumberofpage' + }) ] }) );