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
bfc91dc9
Commit
bfc91dc9
authored
Oct 18, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Optimization of right panel.
parent
5aa30fba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
apps/documenteditor/main/app/controller/RightMenu.js
apps/documenteditor/main/app/controller/RightMenu.js
+4
-3
apps/documenteditor/main/app/view/RightMenu.js
apps/documenteditor/main/app/view/RightMenu.js
+2
-2
No files found.
apps/documenteditor/main/app/controller/RightMenu.js
View file @
bfc91dc9
...
...
@@ -167,14 +167,15 @@ define([
this
.
_settings
[
Common
.
Utils
.
documentSettingsType
.
MailMerge
].
locked
=
!
can_add_table
||
in_equation
;
}
var
lastactive
=
-
1
,
currentactive
,
priorityactive
=
-
1
;
var
lastactive
=
-
1
,
currentactive
,
priorityactive
=
-
1
,
activePane
=
this
.
rightmenu
.
GetActivePane
();
for
(
i
=
0
;
i
<
this
.
_settings
.
length
;
i
++
)
{
var
pnl
=
this
.
_settings
[
i
];
if
(
pnl
===
undefined
||
pnl
.
btn
===
undefined
||
pnl
.
panel
===
undefined
)
continue
;
if
(
pnl
.
hidden
)
{
if
(
!
pnl
.
btn
.
isDisabled
())
pnl
.
btn
.
setDisabled
(
true
);
if
(
this
.
rightmenu
.
GetActivePane
()
==
pnl
.
panelId
)
if
(
activePane
==
pnl
.
panelId
)
currentactive
=
-
1
;
}
else
{
if
(
pnl
.
btn
.
isDisabled
())
pnl
.
btn
.
setDisabled
(
false
);
...
...
@@ -182,7 +183,7 @@ define([
if
(
pnl
.
needShow
)
{
pnl
.
needShow
=
false
;
priorityactive
=
i
;
}
else
if
(
this
.
rightmenu
.
GetActivePane
()
==
pnl
.
panelId
)
}
else
if
(
activePane
==
pnl
.
panelId
)
currentactive
=
i
;
pnl
.
panel
.
setLocked
(
pnl
.
locked
);
}
...
...
apps/documenteditor/main/app/view/RightMenu.js
View file @
bfc91dc9
...
...
@@ -258,7 +258,7 @@ define([
this
.
_settings
[
type
].
btn
.
toggle
(
true
,
false
);
this
.
_settings
[
type
].
btn
.
trigger
(
'
click
'
,
this
.
_settings
[
type
].
btn
);
}
else
{
var
target_pane
=
$
(
"
#
"
+
this
.
_settings
[
type
].
panel
);
var
target_pane
=
this
.
$el
.
find
(
"
#
"
+
this
.
_settings
[
type
].
panel
);
if
(
!
target_pane
.
hasClass
(
'
active
'
)
)
{
target_pane
.
parent
().
find
(
'
> .active
'
).
removeClass
(
'
active
'
);
target_pane
.
addClass
(
"
active
"
);
...
...
@@ -271,7 +271,7 @@ define([
},
GetActivePane
:
function
()
{
return
(
this
.
minimizedMode
)
?
null
:
$
(
"
.settings-panel.active
"
)[
0
].
id
;
return
(
this
.
minimizedMode
)
?
null
:
this
.
$el
.
find
(
"
.settings-panel.active
"
)[
0
].
id
;
},
clearSelection
:
function
()
{
...
...
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