diff --git a/apps/common/main/lib/view/LanguageDialog.js b/apps/common/main/lib/view/LanguageDialog.js
index 20cd5af87..ceef1ed51 100644
--- a/apps/common/main/lib/view/LanguageDialog.js
+++ b/apps/common/main/lib/view/LanguageDialog.js
@@ -89,19 +89,19 @@ define([
editable: false,
template: _.template([
'',
- '',
- '',
- '',
- '',
+ '',
+ '',
+ '',
+ '',
''
].join('')),
data: this.options.languages
@@ -130,7 +130,7 @@ define([
},
onLangSelect: function(cmb, rec, e) {
- cmb.$el.find('.input-icon').toggleClass('lang-flag', rec.spellcheck);
+ cmb.$el.find('.input-icon').toggleClass('spellcheck-lang', rec.spellcheck);
cmb._input.css('padding-left', rec.spellcheck ? 25 : 3);
},
diff --git a/apps/common/main/resources/less/language-dialog.less b/apps/common/main/resources/less/language-dialog.less
index 213375f4c..8c7338f09 100644
--- a/apps/common/main/resources/less/language-dialog.less
+++ b/apps/common/main/resources/less/language-dialog.less
@@ -1,3 +1,37 @@
+// spell check indicator
+.icon.spellcheck-lang {
+ width: 20px;
+ height: 20px;
+ position: absolute;
+}
+
+li {
+ .icon.spellcheck-lang {
+ margin: -3px 4px 0 -24px;
+ }
+
+ &.selected, a.checked {
+ .icon.spellcheck-lang {
+ background-position-x: -20px; --bgX: -20px;
+ }
+ }
+}
+
+.dropdown-menu.lang-menu {
+ > li {
+ a.checked {
+ &:before {
+ display: none;
+ }
+ background-color: @primary;
+
+ &, &:hover, &:focus {
+ color: @dropdown-link-active-color;
+ }
+ }
+ }
+}
+
.combo-langs {
.dropdown-menu {
li .icon.lang-flag {
@@ -7,8 +41,14 @@
.input-icon {
position: absolute;
- left: 5px;
- top: 5px;
+ &.spellcheck-lang { // spell check indicator
+ left: 2px;
+ top: 1px;
+ }
+ &.lang-flag { // language flags
+ left: 5px;
+ top: 5px;
+ }
}
}
@@ -64,11 +104,3 @@
&.ja, &.ja-JP {background-position: 0 -192px;}
&.es-MX {background-position: -16px -192px;}
}
-
-.dropdown-menu.lang-menu {
- > li .icon {
- display: inline-block;
- vertical-align: text-bottom;
- margin: 1px 5px 0 2px;
- }
-}
\ No newline at end of file
diff --git a/apps/documenteditor/main/app/view/DocumentHolder.js b/apps/documenteditor/main/app/view/DocumentHolder.js
index 0d47df104..9579be4eb 100644
--- a/apps/documenteditor/main/app/view/DocumentHolder.js
+++ b/apps/documenteditor/main/app/view/DocumentHolder.js
@@ -3620,9 +3620,9 @@ define([
langid : lang.code,
spellcheck : lang.spellcheck,
template: _.template([
- '',
- '',
- '<%= caption %>',
+ '',
+ '',
+ '<%= caption %>',
''
].join(''))
}).on('click', function(item, e){
@@ -3644,9 +3644,9 @@ define([
langid : lang.code,
spellcheck : lang.spellcheck,
template: _.template([
- '',
- '',
- '<%= caption %>',
+ '',
+ '',
+ '<%= caption %>',
''
].join(''))
}).on('click', function(item, e){
diff --git a/apps/documenteditor/main/app/view/Statusbar.js b/apps/documenteditor/main/app/view/Statusbar.js
index c46279060..e78cd0dfb 100644
--- a/apps/documenteditor/main/app/view/Statusbar.js
+++ b/apps/documenteditor/main/app/view/Statusbar.js
@@ -234,8 +234,8 @@ define([
maxHeight: 300,
restoreHeight: 300,
itemTemplate: _.template([
- '',
- '',
+ '',
+ '',
'<%= caption %>',
''
].join('')),
diff --git a/apps/documenteditor/main/resources/less/statusbar.less b/apps/documenteditor/main/resources/less/statusbar.less
index bfcb6842d..4c4fdca81 100644
--- a/apps/documenteditor/main/resources/less/statusbar.less
+++ b/apps/documenteditor/main/resources/less/statusbar.less
@@ -78,14 +78,6 @@
color: #000;
margin-left: 6px;
- .dropdown-toggle > .icon.lang-flag {
- position: relative;
- top: 3px;
- margin-left: 3px;
- margin-right: 2px;
- display: inline-block;
- }
-
.caret.up {
background-position: @arrow-up-small-offset-x @arrow-up-small-offset-y;
@@ -98,17 +90,9 @@
cursor: pointer;
}
- .dropdown-menu {
- > li .icon {
- display: inline-block;
- vertical-align: text-bottom;
- margin: 1px 5px 0 2px;
- }
- }
-
&.disabled {
cursor: default;
- label, .icon.lang-flag {
+ label {
cursor: default;
opacity: 0.4;
}
@@ -215,3 +199,4 @@
.button-normal-icon(btn-ic-zoomtowidth, 55, @toolbar-icon-size);
.button-normal-icon(btn-ic-zoomtopage, 56, @toolbar-icon-size);
.button-normal-icon(btn-ic-changes, 30, @toolbar-icon-size);
+.button-normal-icon(spellcheck-lang, 69, @toolbar-icon-size);
diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js
index c651b9492..f694feb8c 100644
--- a/apps/presentationeditor/main/app/view/DocumentHolder.js
+++ b/apps/presentationeditor/main/app/view/DocumentHolder.js
@@ -3265,9 +3265,9 @@ define([
langid : lang.code,
spellcheck : lang.spellcheck,
template: _.template([
- '',
- '',
- '<%= caption %>',
+ '',
+ '',
+ '<%= caption %>',
''
].join(''))
}).on('click', function(item, e){
@@ -3289,9 +3289,9 @@ define([
langid : lang.code,
spellcheck : lang.spellcheck,
template: _.template([
- '',
- '',
- '<%= caption %>',
+ '',
+ '',
+ '<%= caption %>',
''
].join(''))
}).on('click', function(item, e){
diff --git a/apps/presentationeditor/main/app/view/Statusbar.js b/apps/presentationeditor/main/app/view/Statusbar.js
index ddade5a82..d3f45ce2e 100644
--- a/apps/presentationeditor/main/app/view/Statusbar.js
+++ b/apps/presentationeditor/main/app/view/Statusbar.js
@@ -268,8 +268,8 @@ define([
maxHeight: 300,
restoreHeight: 300,
itemTemplate: _.template([
- '',
- '',
+ '',
+ '',
'<%= caption %>',
''
].join('')),
diff --git a/apps/presentationeditor/main/resources/less/statusbar.less b/apps/presentationeditor/main/resources/less/statusbar.less
index 06db67d6d..533e62d1e 100644
--- a/apps/presentationeditor/main/resources/less/statusbar.less
+++ b/apps/presentationeditor/main/resources/less/statusbar.less
@@ -91,14 +91,6 @@
color: #000;
margin-left: 6px;
- .dropdown-toggle > .icon.lang-flag {
- position: relative;
- top: 3px;
- margin-left: 3px;
- margin-right: 2px;
- display: inline-block;
- }
-
.caret.up {
background-position: @arrow-up-small-offset-x @arrow-up-small-offset-y;
@@ -111,17 +103,9 @@
cursor: pointer;
}
- .dropdown-menu {
- > li .icon {
- display: inline-block;
- vertical-align: text-bottom;
- margin: 1px 5px 0 2px;
- }
- }
-
&.disabled {
cursor: default;
- label, .icon.lang-flag {
+ label {
cursor: default;
opacity: 0.4;
}
@@ -215,3 +199,5 @@
}
}
}
+
+.button-normal-icon(spellcheck-lang, 76, @toolbar-icon-size);
\ No newline at end of file
diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
index c8f4ac13f..d7f02da9d 100644
--- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
+++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js
@@ -696,7 +696,7 @@ define([
data : regdata,
template: _.template([
'',
- '',
+ '',
'',
'',
'