[SSE] Spell checking settings: fix, change layout

This commit is contained in:
Julia Svinareva 2019-11-27 17:16:35 +03:00
parent 9e9848c6ec
commit c1ebc05903
3 changed files with 26 additions and 16 deletions

View file

@ -692,7 +692,7 @@ define([
this.api.asc_ignoreUppercase(ignoreUppercase);
var ignoreNumbers = Common.localStorage.getBool("sse-spellcheck-ignore-numbers-words", true);
Common.Utils.InternalSettings.set("sse-spellcheck-ignore-numbers-words", ignoreNumbers);
this.api.asc_ignoreUppercase(ignoreNumbers);
this.api.asc_ignoreNumbers(ignoreNumbers);
/** spellcheck settings end **/
me.api.asc_registerCallback('asc_onStartAction', _.bind(me.onLongActionBegin, me));

View file

@ -201,7 +201,7 @@ define([
store: new Common.UI.DataViewStore([
{name: this.txtGeneral, panel: this.generalSettings, iconCls:'mnu-settings-general', selected: true},
{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([
'<div id="<%= id %>" class="settings-item-wrap">',
@ -961,20 +961,21 @@ define([
template: _.template([
'<table class="main"><tbody>',
'<tr><td style="padding-left: 40px;">',
'<div id="fms-chb-ignore-uppercase-words"></div>',
'</td></tr>',
'<tr><td style="padding-left: 40px;">',
'<div id="fms-chb-ignore-numbers-words"></div>',
'</td></tr>',
'<tr><td style="padding-left: 40px;">',
'<label class="input-label"><%= scope.strDictionaryLanguage %></label>',
'<div id="fms-cmb-dictionary-language" style="width: 200px;"></div>',
'</td></tr>',
'<tr class="divider"></tr>',
'<tr>',
'<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="left" style="padding-bottom: 8px;"><label><%= scope.strDictionaryLanguage %></label></td>',
'<td class="right" style="padding-bottom: 8px;"><span id="fms-cmb-dictionary-language" /></td>',
'</tr>',
'<tr>',
'<td class="left" style="padding-bottom: 8px;"></td>',
'<td class="right" style="padding-bottom: 8px;"><span id="fms-chb-ignore-uppercase-words" /></td>',
'</tr>',
'<tr>',
'<td class="left"></td>',
'<td class="right"><span id="fms-chb-ignore-numbers-words" /></td>',
'</tr>','<tr class="divider"></tr>',
'<tr>',
'<td class="left"></td>',
'<td class="right"><button id="fms-spellcheck-btn-apply" class="btn normal dlg-btn primary"><%= scope.okButtonText %></button></td>',
'</tr>',
'</tbody></table>'
].join('')),
@ -1002,8 +1003,9 @@ define([
this.cmbDictionaryLanguage = new Common.UI.ComboBox({
el: $markup.findById('#fms-cmb-dictionary-language'),
cls: 'input-group-nr',
style: 'width: 267px;',
editable: false,
menuStyle: 'min-width: 100%; max-height: 209px;'
menuStyle: 'min-width: 267px; max-height: 209px;'
});
this.btnApply = new Common.UI.Button({

View file

@ -213,6 +213,10 @@ button.notify .btn-menu-comments {background-position: -0*@toolbar-icon-size -2*
&.mnu-settings-general {
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 {
background-position: -20px -1141px;
}
&.mu-settings-spellcheck {
background-position: -20px -1860px;
}
}
}
}