[SSE] Change order for super/subscript buttons.
This commit is contained in:
parent
997a00f96f
commit
0295612ce1
|
@ -1767,7 +1767,7 @@ define([
|
||||||
supersc = fontobj.asc_getSuperscript();
|
supersc = fontobj.asc_getSuperscript();
|
||||||
|
|
||||||
if (this._state.subscript !== subsc || this._state.superscript !== supersc) {
|
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 = toolbar.btnSubscript;
|
||||||
|
|
||||||
btnSubscript.toggle(index>-1, true);
|
btnSubscript.toggle(index>-1, true);
|
||||||
|
@ -1908,7 +1908,7 @@ define([
|
||||||
supersc = fontobj.asc_getSuperscript();
|
supersc = fontobj.asc_getSuperscript();
|
||||||
|
|
||||||
if (this._state.subscript !== subsc || this._state.superscript !== supersc) {
|
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 = toolbar.btnSubscript;
|
||||||
|
|
||||||
btnSubscript.toggle(index>-1, true);
|
btnSubscript.toggle(index>-1, true);
|
||||||
|
|
|
@ -429,15 +429,6 @@ define([
|
||||||
lock : [_set.selImage, _set.editFormula, _set.selRange, _set.coAuth, _set.coAuthText, _set.lostConnect],
|
lock : [_set.selImage, _set.editFormula, _set.selRange, _set.coAuth, _set.coAuthText, _set.lostConnect],
|
||||||
menu : new Common.UI.Menu({
|
menu : new Common.UI.Menu({
|
||||||
items: [
|
items: [
|
||||||
{
|
|
||||||
caption : me.textSubscript,
|
|
||||||
iconCls : 'mnu-text-subscript',
|
|
||||||
icls : 'btn-subscript',
|
|
||||||
checkable : true,
|
|
||||||
allowDepress: true,
|
|
||||||
toggleGroup : 'textsubscriptgroup',
|
|
||||||
value : 'sub'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
caption : me.textSuperscript,
|
caption : me.textSuperscript,
|
||||||
iconCls : 'mnu-text-superscript',
|
iconCls : 'mnu-text-superscript',
|
||||||
|
@ -446,6 +437,15 @@ define([
|
||||||
allowDepress: true,
|
allowDepress: true,
|
||||||
toggleGroup : 'textsubscriptgroup',
|
toggleGroup : 'textsubscriptgroup',
|
||||||
value : 'super'
|
value : 'super'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
caption : me.textSubscript,
|
||||||
|
iconCls : 'mnu-text-subscript',
|
||||||
|
icls : 'btn-subscript',
|
||||||
|
checkable : true,
|
||||||
|
allowDepress: true,
|
||||||
|
toggleGroup : 'textsubscriptgroup',
|
||||||
|
value : 'sub'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue