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' + }) ] }) );