diff --git a/apps/documenteditor/main/app/view/RightMenu.js b/apps/documenteditor/main/app/view/RightMenu.js index 018f957dd..bdc155b38 100644 --- a/apps/documenteditor/main/app/view/RightMenu.js +++ b/apps/documenteditor/main/app/view/RightMenu.js @@ -156,13 +156,13 @@ define([ el.html(this.template({})); - this.btnText.el = $('#id-right-menu-text'); this.btnText.render(); - this.btnTable.el = $('#id-right-menu-table'); this.btnTable.render(); - this.btnImage.el = $('#id-right-menu-image'); this.btnImage.render(); - this.btnHeaderFooter.el = $('#id-right-menu-header'); this.btnHeaderFooter.render(); - this.btnChart.el = $('#id-right-menu-chart'); this.btnChart.render(); - this.btnShape.el = $('#id-right-menu-shape'); this.btnShape.render(); - this.btnTextArt.el = $('#id-right-menu-textart'); this.btnTextArt.render(); + this.btnText.setElement($('#id-right-menu-text'), false); this.btnText.render(); + this.btnTable.setElement($('#id-right-menu-table'), false); this.btnTable.render(); + this.btnImage.setElement($('#id-right-menu-image'), false); this.btnImage.render(); + this.btnHeaderFooter.setElement($('#id-right-menu-header'), false); this.btnHeaderFooter.render(); + this.btnChart.setElement($('#id-right-menu-chart'), false); this.btnChart.render(); + this.btnShape.setElement($('#id-right-menu-shape'), false); this.btnShape.render(); + this.btnTextArt.setElement($('#id-right-menu-textart'), false); this.btnTextArt.render(); this.btnText.on('click', _.bind(this.onBtnMenuClick, this)); this.btnTable.on('click', _.bind(this.onBtnMenuClick, this)); diff --git a/apps/documenteditor/main/app/view/Statusbar.js b/apps/documenteditor/main/app/view/Statusbar.js index c416bace9..c69c23406 100644 --- a/apps/documenteditor/main/app/view/Statusbar.js +++ b/apps/documenteditor/main/app/view/Statusbar.js @@ -291,7 +291,7 @@ define([ var me = this; function _btn_render(button, slot) { - button.el = slot; + button.setElement(slot, false); button.render(); }