Commit c47166ca authored by Alexey Golubev's avatar Alexey Golubev

Merge branch 'develop' of github.com:ONLYOFFICE/web-apps into develop

parents 7a1cbfc1 880fad0c
...@@ -2189,6 +2189,8 @@ define([ ...@@ -2189,6 +2189,8 @@ define([
}, },
fillEquations: function() { fillEquations: function() {
if (!this.toolbar.btnInsertEquation.rendered) return;
var me = this, equationsStore = this.getApplication().getCollection('EquationGroups'); var me = this, equationsStore = this.getApplication().getCollection('EquationGroups');
me.equationPickers = []; me.equationPickers = [];
...@@ -2380,8 +2382,9 @@ define([ ...@@ -2380,8 +2382,9 @@ define([
}, },
fillTextArt: function() { fillTextArt: function() {
var me = this; if (!this.toolbar.btnInsertText.rendered) return;
var me = this;
if (this.toolbar.mnuTextArtPicker) { if (this.toolbar.mnuTextArtPicker) {
var models = this.getApplication().getCollection('Common.Collections.TextArt').models, var models = this.getApplication().getCollection('Common.Collections.TextArt').models,
count = this.toolbar.mnuTextArtPicker.store.length; count = this.toolbar.mnuTextArtPicker.store.length;
......
...@@ -1557,6 +1557,11 @@ define([ ...@@ -1557,6 +1557,11 @@ define([
if (me.listStyles.menuPicker.store.length > 0 && listStylesVisible){ if (me.listStyles.menuPicker.store.length > 0 && listStylesVisible){
me.listStyles.fillComboView(me.listStyles.menuPicker.getSelectedRec(), true); me.listStyles.fillComboView(me.listStyles.menuPicker.getSelectedRec(), true);
} }
if (me.btnInsertText.rendered)
DE.getController('Toolbar').fillTextArt();
if (me.btnInsertEquation.rendered)
DE.getController('Toolbar').fillEquations();
}, 100); }, 100);
} }
......
...@@ -1256,6 +1256,9 @@ define([ ...@@ -1256,6 +1256,9 @@ define([
if (me.toolbar.listStyles.menuPicker.store.length > 0 && listStylesVisible){ if (me.toolbar.listStyles.menuPicker.store.length > 0 && listStylesVisible){
me.toolbar.listStyles.fillComboView(me.toolbar.listStyles.menuPicker.getSelectedRec(), true); me.toolbar.listStyles.fillComboView(me.toolbar.listStyles.menuPicker.getSelectedRec(), true);
} }
if (me.toolbar.btnInsertText.rendered)
SSE.getController('Toolbar').fillTextArt();
}, 100); }, 100);
} }
...@@ -2002,6 +2005,8 @@ define([ ...@@ -2002,6 +2005,8 @@ define([
}, },
fillTextArt: function() { fillTextArt: function() {
if (!this.toolbar.btnInsertText.rendered) return;
var me = this; var me = this;
if (this.toolbar.mnuTextArtPicker) { if (this.toolbar.mnuTextArtPicker) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment