[DE] Fixed buttons rendering.
This commit is contained in:
parent
967af6951a
commit
21a9a48b44
|
@ -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));
|
||||
|
|
|
@ -291,7 +291,7 @@ define([
|
|||
var me = this;
|
||||
|
||||
function _btn_render(button, slot) {
|
||||
button.el = slot;
|
||||
button.setElement(slot, false);
|
||||
button.render();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue