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
fcecb0c6
Commit
fcecb0c6
authored
Jul 05, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Disable plugins panel when selecting cells range or editing formulas.
parent
280ba9e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
apps/common/main/lib/view/Plugins.js
apps/common/main/lib/view/Plugins.js
+5
-1
apps/common/main/resources/less/plugins.less
apps/common/main/resources/less/plugins.less
+11
-0
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
+8
-0
No files found.
apps/common/main/lib/view/Plugins.js
View file @
fcecb0c6
...
...
@@ -66,7 +66,8 @@ define([
'
</div>
'
,
'
<div id="current-plugin-frame" class="">
'
,
'
</div>
'
,
'
</div>
'
'
</div>
'
,
'
<div id="plugins-mask" style="display: none;">
'
].
join
(
''
)),
initialize
:
function
(
options
)
{
...
...
@@ -104,6 +105,7 @@ define([
this
.
pluginName
=
$
(
'
#current-plugin-header label
'
);
this
.
pluginsPanel
=
$
(
'
#plugins-box
'
);
this
.
pluginsMask
=
$
(
'
#plugins-mask
'
);
this
.
currentPluginPanel
=
$
(
'
#current-plugin-box
'
);
this
.
pluginMenu
=
new
Common
.
UI
.
Menu
({
...
...
@@ -129,6 +131,8 @@ define([
_
.
each
(
this
.
lockedControls
,
function
(
item
)
{
item
.
setDisabled
(
disable
);
});
this
.
pluginsMask
.
css
(
'
display
'
,
disable
?
'
block
'
:
'
none
'
);
}
},
...
...
apps/common/main/resources/less/plugins.less
View file @
fcecb0c6
...
...
@@ -106,3 +106,14 @@
padding-top: 38px;
}
}
#plugins-mask {
position: absolute;
top: 0;
left: 40px;
width: 100%;
height: 100%;
opacity: 0.4;
background-color: @gray-light;
z-index: @zindex-tooltip + 1;
}
\ No newline at end of file
apps/spreadsheeteditor/main/app/controller/LeftMenu.js
View file @
fcecb0c6
...
...
@@ -659,6 +659,10 @@ define([
this
.
leftMenu
.
btnFile
.
setDisabled
(
isRangeSelection
);
this
.
leftMenu
.
btnAbout
.
setDisabled
(
isRangeSelection
);
this
.
leftMenu
.
btnSearch
.
setDisabled
(
isRangeSelection
);
if
(
this
.
mode
.
canPlugins
&&
this
.
leftMenu
.
panelPlugins
)
{
this
.
leftMenu
.
panelPlugins
.
setLocked
(
isRangeSelection
);
this
.
leftMenu
.
panelPlugins
.
disableControls
(
isRangeSelection
);
}
},
onApiEditCell
:
function
(
state
)
{
...
...
@@ -668,6 +672,10 @@ define([
this
.
leftMenu
.
btnFile
.
setDisabled
(
isEditFormula
);
this
.
leftMenu
.
btnAbout
.
setDisabled
(
isEditFormula
);
this
.
leftMenu
.
btnSearch
.
setDisabled
(
isEditFormula
);
if
(
this
.
mode
.
canPlugins
&&
this
.
leftMenu
.
panelPlugins
)
{
this
.
leftMenu
.
panelPlugins
.
setLocked
(
isEditFormula
);
this
.
leftMenu
.
panelPlugins
.
disableControls
(
isEditFormula
);
}
},
textNoTextFound
:
'
Text not found
'
,
...
...
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