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
fd7b6791
Commit
fd7b6791
authored
Mar 21, 2017
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 33669.
parent
1092ea92
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
44 additions
and
22 deletions
+44
-22
apps/common/main/lib/component/Button.js
apps/common/main/lib/component/Button.js
+4
-2
apps/documenteditor/main/app/view/RightMenu.js
apps/documenteditor/main/app/view/RightMenu.js
+14
-7
apps/presentationeditor/main/app/view/RightMenu.js
apps/presentationeditor/main/app/view/RightMenu.js
+14
-7
apps/spreadsheeteditor/main/app/view/RightMenu.js
apps/spreadsheeteditor/main/app/view/RightMenu.js
+12
-6
No files found.
apps/common/main/lib/component/Button.js
View file @
fd7b6791
...
...
@@ -416,14 +416,16 @@ define([
setDisabled
:
function
(
disabled
)
{
if
(
this
.
rendered
&&
this
.
disabled
!=
disabled
)
{
var
el
=
this
.
cmpEl
,
isGroup
=
el
.
hasClass
(
'
btn-group
'
);
isGroup
=
el
.
hasClass
(
'
btn-group
'
),
me
=
this
;
disabled
=
(
disabled
===
true
);
if
(
disabled
!==
el
.
hasClass
(
'
disabled
'
))
{
var
decorateBtn
=
function
(
button
)
{
button
.
toggleClass
(
'
disabled
'
,
disabled
);
(
disabled
)
?
button
.
attr
({
disabled
:
disabled
})
:
button
.
removeAttr
(
'
disabled
'
);
if
(
!
me
.
options
.
allowMouseEventsOnDisabled
)
(
disabled
)
?
button
.
attr
({
disabled
:
disabled
})
:
button
.
removeAttr
(
'
disabled
'
);
};
decorateBtn
(
el
);
...
...
apps/documenteditor/main/app/view/RightMenu.js
View file @
fd7b6791
...
...
@@ -79,42 +79,48 @@ define([
asctype
:
Common
.
Utils
.
documentSettingsType
.
Paragraph
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnTable
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtTableSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Table
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnImage
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtImageSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Image
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnHeaderFooter
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtHeaderFooterSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Header
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnChart
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtChartSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Chart
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnShape
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtShapeSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Shape
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnTextArt
=
new
Common
.
UI
.
Button
({
...
...
@@ -122,7 +128,8 @@ define([
asctype
:
Common
.
Utils
.
documentSettingsType
.
TextArt
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
_settings
=
[];
...
...
apps/presentationeditor/main/app/view/RightMenu.js
View file @
fd7b6791
...
...
@@ -78,42 +78,48 @@ define([
asctype
:
Common
.
Utils
.
documentSettingsType
.
Paragraph
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnTable
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtTableSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Table
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnImage
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtImageSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Image
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnSlide
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtSlideSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Slide
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnChart
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtChartSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Chart
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnShape
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtShapeSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Shape
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnTextArt
=
new
Common
.
UI
.
Button
({
...
...
@@ -121,7 +127,8 @@ define([
asctype
:
Common
.
Utils
.
documentSettingsType
.
TextArt
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
_settings
=
[];
...
...
apps/spreadsheeteditor/main/app/view/RightMenu.js
View file @
fd7b6791
...
...
@@ -77,28 +77,32 @@ define([
asctype
:
Common
.
Utils
.
documentSettingsType
.
Paragraph
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnImage
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtImageSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Image
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnChart
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtChartSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Chart
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnShape
=
new
Common
.
UI
.
Button
({
hint
:
this
.
txtShapeSettings
,
asctype
:
Common
.
Utils
.
documentSettingsType
.
Shape
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnTextArt
=
new
Common
.
UI
.
Button
({
...
...
@@ -106,7 +110,8 @@ define([
asctype
:
Common
.
Utils
.
documentSettingsType
.
TextArt
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
btnTable
=
new
Common
.
UI
.
Button
({
...
...
@@ -114,7 +119,8 @@ define([
asctype
:
Common
.
Utils
.
documentSettingsType
.
Table
,
enableToggle
:
true
,
disabled
:
true
,
toggleGroup
:
'
tabpanelbtnsGroup
'
toggleGroup
:
'
tabpanelbtnsGroup
'
,
allowMouseEventsOnDisabled
:
true
});
this
.
_settings
=
[];
...
...
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