[SSE] Change order for super/subscript buttons.

This commit is contained in:
Julia Radzhabova 2018-01-10 16:08:42 +03:00
parent 997a00f96f
commit 0295612ce1
2 changed files with 11 additions and 11 deletions

View file

@ -1767,7 +1767,7 @@ define([
supersc = fontobj.asc_getSuperscript();
if (this._state.subscript !== subsc || this._state.superscript !== supersc) {
var index = (subsc) ? 0 : (supersc ? 1 : -1),
var index = (supersc) ? 0 : (subsc ? 1 : -1),
btnSubscript = toolbar.btnSubscript;
btnSubscript.toggle(index>-1, true);
@ -1908,7 +1908,7 @@ define([
supersc = fontobj.asc_getSuperscript();
if (this._state.subscript !== subsc || this._state.superscript !== supersc) {
var index = (subsc) ? 0 : (supersc ? 1 : -1),
var index = (supersc) ? 0 : (subsc ? 1 : -1),
btnSubscript = toolbar.btnSubscript;
btnSubscript.toggle(index>-1, true);

View file

@ -429,15 +429,6 @@ define([
lock : [_set.selImage, _set.editFormula, _set.selRange, _set.coAuth, _set.coAuthText, _set.lostConnect],
menu : new Common.UI.Menu({
items: [
{
caption : me.textSubscript,
iconCls : 'mnu-text-subscript',
icls : 'btn-subscript',
checkable : true,
allowDepress: true,
toggleGroup : 'textsubscriptgroup',
value : 'sub'
},
{
caption : me.textSuperscript,
iconCls : 'mnu-text-superscript',
@ -446,6 +437,15 @@ define([
allowDepress: true,
toggleGroup : 'textsubscriptgroup',
value : 'super'
},
{
caption : me.textSubscript,
iconCls : 'mnu-text-subscript',
icls : 'btn-subscript',
checkable : true,
allowDepress: true,
toggleGroup : 'textsubscriptgroup',
value : 'sub'
}
]
})