From 5e10e453494320a0251438158cd501195689c076 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 21 Apr 2017 12:30:55 +0300 Subject: [PATCH] [PE] Fixed buttons rendering. --- apps/presentationeditor/main/app/view/RightMenu.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/presentationeditor/main/app/view/RightMenu.js b/apps/presentationeditor/main/app/view/RightMenu.js index df3d42116..8c70a53c7 100644 --- a/apps/presentationeditor/main/app/view/RightMenu.js +++ b/apps/presentationeditor/main/app/view/RightMenu.js @@ -155,13 +155,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.btnSlide.el = $('#id-right-menu-slide'); this.btnSlide.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.btnSlide.setElement($('#id-right-menu-slide'), false); this.btnSlide.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));