From 59750ed06bfb78249c1ba1c20cd48b51e7b86a63 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 28 Apr 2017 17:12:07 +0300 Subject: [PATCH] [SSE] Fixed buttons rendering. --- apps/spreadsheeteditor/main/app/view/RightMenu.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/RightMenu.js b/apps/spreadsheeteditor/main/app/view/RightMenu.js index 3e93ce263..c685e418a 100644 --- a/apps/spreadsheeteditor/main/app/view/RightMenu.js +++ b/apps/spreadsheeteditor/main/app/view/RightMenu.js @@ -145,12 +145,12 @@ define([ el.html(this.template({})); - this.btnText.el = $('#id-right-menu-text'); this.btnText.render(); - this.btnImage.el = $('#id-right-menu-image'); this.btnImage.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.btnTable.el = $('#id-right-menu-table'); this.btnTable.render(); + this.btnText.setElement($('#id-right-menu-text'), false); this.btnText.render(); + this.btnImage.setElement($('#id-right-menu-image'), false); this.btnImage.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.btnTable.setElement($('#id-right-menu-table'), false); this.btnTable.render(); this.btnText.on('click', _.bind(this.onBtnMenuClick, this)); this.btnImage.on('click', _.bind(this.onBtnMenuClick, this));