Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
6804c4a2
Commit
6804c4a2
authored
Nov 02, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Disable language button in the status bar until languages are loaded.
parent
24ad7e79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
apps/documenteditor/main/app/view/Statusbar.js
apps/documenteditor/main/app/view/Statusbar.js
+11
-4
No files found.
apps/documenteditor/main/app/view/Statusbar.js
View file @
6804c4a2
...
...
@@ -150,7 +150,8 @@ define([
this
.
btnDocLanguage
=
new
Common
.
UI
.
Button
({
el
:
$
(
'
#btn-doc-lang
'
,
this
.
el
),
hint
:
this
.
tipSetDocLang
,
hintAnchor
:
'
top
'
hintAnchor
:
'
top
'
,
disabled
:
true
});
this
.
btnSetSpelling
=
new
Common
.
UI
.
Button
({
...
...
@@ -203,7 +204,8 @@ define([
this
.
btnLanguage
=
new
Common
.
UI
.
Button
({
el
:
panelLang
,
hint
:
this
.
tipSetLang
,
hintAnchor
:
'
top-left
'
hintAnchor
:
'
top-left
'
,
disabled
:
true
});
this
.
btnLanguage
.
cmpEl
.
on
({
'
show.bs.dropdown
'
:
function
()
{
...
...
@@ -465,6 +467,10 @@ define([
},
this
);
this
.
langMenu
.
doLayout
();
if
(
this
.
langMenu
.
items
.
length
>
0
)
{
this
.
btnLanguage
.
setDisabled
(
false
);
this
.
btnDocLanguage
.
setDisabled
(
false
);
}
},
setLanguage
:
function
(
info
)
{
...
...
@@ -493,8 +499,9 @@ define([
},
SetDisabled
:
function
(
disable
)
{
this
.
btnLanguage
.
setDisabled
(
disable
);
this
.
btnDocLanguage
.
setDisabled
(
disable
);
var
langs
=
this
.
langMenu
.
items
.
length
>
0
;
this
.
btnLanguage
.
setDisabled
(
disable
||
!
langs
);
this
.
btnDocLanguage
.
setDisabled
(
disable
||
!
langs
);
if
(
disable
)
{
this
.
state
.
changespanel
=
this
.
mnuChangesPanel
.
checked
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment