[SSE] Spell checking settings: fix, change layout
This commit is contained in:
parent
9e9848c6ec
commit
c1ebc05903
|
@ -692,7 +692,7 @@ define([
|
||||||
this.api.asc_ignoreUppercase(ignoreUppercase);
|
this.api.asc_ignoreUppercase(ignoreUppercase);
|
||||||
var ignoreNumbers = Common.localStorage.getBool("sse-spellcheck-ignore-numbers-words", true);
|
var ignoreNumbers = Common.localStorage.getBool("sse-spellcheck-ignore-numbers-words", true);
|
||||||
Common.Utils.InternalSettings.set("sse-spellcheck-ignore-numbers-words", ignoreNumbers);
|
Common.Utils.InternalSettings.set("sse-spellcheck-ignore-numbers-words", ignoreNumbers);
|
||||||
this.api.asc_ignoreUppercase(ignoreNumbers);
|
this.api.asc_ignoreNumbers(ignoreNumbers);
|
||||||
/** spellcheck settings end **/
|
/** spellcheck settings end **/
|
||||||
|
|
||||||
me.api.asc_registerCallback('asc_onStartAction', _.bind(me.onLongActionBegin, me));
|
me.api.asc_registerCallback('asc_onStartAction', _.bind(me.onLongActionBegin, me));
|
||||||
|
|
|
@ -201,7 +201,7 @@ define([
|
||||||
store: new Common.UI.DataViewStore([
|
store: new Common.UI.DataViewStore([
|
||||||
{name: this.txtGeneral, panel: this.generalSettings, iconCls:'mnu-settings-general', selected: true},
|
{name: this.txtGeneral, panel: this.generalSettings, iconCls:'mnu-settings-general', selected: true},
|
||||||
{name: this.txtPageSettings, panel: this.printSettings, iconCls:'mnu-print'},
|
{name: this.txtPageSettings, panel: this.printSettings, iconCls:'mnu-print'},
|
||||||
{name: this.txtSpellСhecking, panel: this.spellcheckSettings, iconCls:'btn-ic-docspell'}
|
{name: this.txtSpellСhecking, panel: this.spellcheckSettings, iconCls:'mu-settings-spellcheck'}
|
||||||
]),
|
]),
|
||||||
itemTemplate: _.template([
|
itemTemplate: _.template([
|
||||||
'<div id="<%= id %>" class="settings-item-wrap">',
|
'<div id="<%= id %>" class="settings-item-wrap">',
|
||||||
|
@ -961,17 +961,18 @@ define([
|
||||||
|
|
||||||
template: _.template([
|
template: _.template([
|
||||||
'<table class="main"><tbody>',
|
'<table class="main"><tbody>',
|
||||||
'<tr><td style="padding-left: 40px;">',
|
'<tr>',
|
||||||
'<div id="fms-chb-ignore-uppercase-words"></div>',
|
'<td class="left" style="padding-bottom: 8px;"><label><%= scope.strDictionaryLanguage %></label></td>',
|
||||||
'</td></tr>',
|
'<td class="right" style="padding-bottom: 8px;"><span id="fms-cmb-dictionary-language" /></td>',
|
||||||
'<tr><td style="padding-left: 40px;">',
|
'</tr>',
|
||||||
'<div id="fms-chb-ignore-numbers-words"></div>',
|
'<tr>',
|
||||||
'</td></tr>',
|
'<td class="left" style="padding-bottom: 8px;"></td>',
|
||||||
'<tr><td style="padding-left: 40px;">',
|
'<td class="right" style="padding-bottom: 8px;"><span id="fms-chb-ignore-uppercase-words" /></td>',
|
||||||
'<label class="input-label"><%= scope.strDictionaryLanguage %></label>',
|
'</tr>',
|
||||||
'<div id="fms-cmb-dictionary-language" style="width: 200px;"></div>',
|
'<tr>',
|
||||||
'</td></tr>',
|
'<td class="left"></td>',
|
||||||
'<tr class="divider"></tr>',
|
'<td class="right"><span id="fms-chb-ignore-numbers-words" /></td>',
|
||||||
|
'</tr>','<tr class="divider"></tr>',
|
||||||
'<tr>',
|
'<tr>',
|
||||||
'<td class="left"></td>',
|
'<td class="left"></td>',
|
||||||
'<td class="right"><button id="fms-spellcheck-btn-apply" class="btn normal dlg-btn primary"><%= scope.okButtonText %></button></td>',
|
'<td class="right"><button id="fms-spellcheck-btn-apply" class="btn normal dlg-btn primary"><%= scope.okButtonText %></button></td>',
|
||||||
|
@ -1002,8 +1003,9 @@ define([
|
||||||
this.cmbDictionaryLanguage = new Common.UI.ComboBox({
|
this.cmbDictionaryLanguage = new Common.UI.ComboBox({
|
||||||
el: $markup.findById('#fms-cmb-dictionary-language'),
|
el: $markup.findById('#fms-cmb-dictionary-language'),
|
||||||
cls: 'input-group-nr',
|
cls: 'input-group-nr',
|
||||||
|
style: 'width: 267px;',
|
||||||
editable: false,
|
editable: false,
|
||||||
menuStyle: 'min-width: 100%; max-height: 209px;'
|
menuStyle: 'min-width: 267px; max-height: 209px;'
|
||||||
});
|
});
|
||||||
|
|
||||||
this.btnApply = new Common.UI.Button({
|
this.btnApply = new Common.UI.Button({
|
||||||
|
|
|
@ -213,6 +213,10 @@ button.notify .btn-menu-comments {background-position: -0*@toolbar-icon-size -2*
|
||||||
&.mnu-settings-general {
|
&.mnu-settings-general {
|
||||||
background-position: 0 -1141px;
|
background-position: 0 -1141px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.mu-settings-spellcheck {
|
||||||
|
background-position: 0px -1860px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -233,6 +237,10 @@ button.notify .btn-menu-comments {background-position: -0*@toolbar-icon-size -2*
|
||||||
&.mnu-settings-general {
|
&.mnu-settings-general {
|
||||||
background-position: -20px -1141px;
|
background-position: -20px -1141px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.mu-settings-spellcheck {
|
||||||
|
background-position: -20px -1860px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue