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
a7e603ca
Commit
a7e603ca
authored
Oct 18, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PE] [SSE] Optimization of right panel.
parent
bfc91dc9
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
apps/presentationeditor/main/app/controller/RightMenu.js
apps/presentationeditor/main/app/controller/RightMenu.js
+4
-3
apps/presentationeditor/main/app/view/RightMenu.js
apps/presentationeditor/main/app/view/RightMenu.js
+1
-1
apps/spreadsheeteditor/main/app/controller/RightMenu.js
apps/spreadsheeteditor/main/app/controller/RightMenu.js
+4
-3
apps/spreadsheeteditor/main/app/view/RightMenu.js
apps/spreadsheeteditor/main/app/view/RightMenu.js
+1
-1
No files found.
apps/presentationeditor/main/app/controller/RightMenu.js
View file @
a7e603ca
...
@@ -148,14 +148,15 @@ define([
...
@@ -148,14 +148,15 @@ define([
}
}
}
}
var
lastactive
=
-
1
,
currentactive
,
priorityactive
=
-
1
;
var
lastactive
=
-
1
,
currentactive
,
priorityactive
=
-
1
,
activePane
=
this
.
rightmenu
.
GetActivePane
();
for
(
i
=
0
;
i
<
this
.
_settings
.
length
;
i
++
)
{
for
(
i
=
0
;
i
<
this
.
_settings
.
length
;
i
++
)
{
var
pnl
=
this
.
_settings
[
i
];
var
pnl
=
this
.
_settings
[
i
];
if
(
pnl
===
undefined
)
continue
;
if
(
pnl
===
undefined
)
continue
;
if
(
pnl
.
hidden
)
{
if
(
pnl
.
hidden
)
{
if
(
!
pnl
.
btn
.
isDisabled
())
pnl
.
btn
.
setDisabled
(
true
);
if
(
!
pnl
.
btn
.
isDisabled
())
pnl
.
btn
.
setDisabled
(
true
);
if
(
this
.
rightmenu
.
GetActivePane
()
==
pnl
.
panelId
)
if
(
activePane
==
pnl
.
panelId
)
currentactive
=
-
1
;
currentactive
=
-
1
;
}
else
{
}
else
{
if
(
pnl
.
btn
.
isDisabled
())
pnl
.
btn
.
setDisabled
(
false
);
if
(
pnl
.
btn
.
isDisabled
())
pnl
.
btn
.
setDisabled
(
false
);
...
@@ -165,7 +166,7 @@ define([
...
@@ -165,7 +166,7 @@ define([
pnl
.
needShow
=
false
;
pnl
.
needShow
=
false
;
priorityactive
=
i
;
priorityactive
=
i
;
}
else
if
(
i
!=
Common
.
Utils
.
documentSettingsType
.
Slide
||
this
.
rightmenu
.
_settings
[
i
].
isCurrent
)
{
}
else
if
(
i
!=
Common
.
Utils
.
documentSettingsType
.
Slide
||
this
.
rightmenu
.
_settings
[
i
].
isCurrent
)
{
if
(
this
.
rightmenu
.
GetActivePane
()
==
pnl
.
panelId
)
if
(
activePane
==
pnl
.
panelId
)
currentactive
=
i
;
currentactive
=
i
;
}
}
...
...
apps/presentationeditor/main/app/view/RightMenu.js
View file @
a7e603ca
...
@@ -254,7 +254,7 @@ define([
...
@@ -254,7 +254,7 @@ define([
},
},
GetActivePane
:
function
()
{
GetActivePane
:
function
()
{
return
(
this
.
minimizedMode
)
?
null
:
$
(
"
.settings-panel.active
"
)[
0
].
id
;
return
(
this
.
minimizedMode
)
?
null
:
this
.
$el
.
find
(
"
.settings-panel.active
"
)[
0
].
id
;
},
},
SetDisabled
:
function
(
id
,
disabled
,
all
)
{
SetDisabled
:
function
(
id
,
disabled
,
all
)
{
...
...
apps/spreadsheeteditor/main/app/controller/RightMenu.js
View file @
a7e603ca
...
@@ -177,7 +177,8 @@ define([
...
@@ -177,7 +177,8 @@ define([
this
.
_settings
[
settingsType
].
hidden
=
0
;
this
.
_settings
[
settingsType
].
hidden
=
0
;
}
}
var
lastactive
=
-
1
,
currentactive
,
priorityactive
=
-
1
;
var
lastactive
=
-
1
,
currentactive
,
priorityactive
=
-
1
,
activePane
=
this
.
rightmenu
.
GetActivePane
();
for
(
i
=
0
;
i
<
this
.
_settings
.
length
;
++
i
)
{
for
(
i
=
0
;
i
<
this
.
_settings
.
length
;
++
i
)
{
var
pnl
=
this
.
_settings
[
i
];
var
pnl
=
this
.
_settings
[
i
];
if
(
pnl
===
undefined
)
continue
;
if
(
pnl
===
undefined
)
continue
;
...
@@ -185,7 +186,7 @@ define([
...
@@ -185,7 +186,7 @@ define([
if
(
pnl
.
hidden
)
{
if
(
pnl
.
hidden
)
{
if
(
!
pnl
.
btn
.
isDisabled
()
)
if
(
!
pnl
.
btn
.
isDisabled
()
)
pnl
.
btn
.
setDisabled
(
true
);
pnl
.
btn
.
setDisabled
(
true
);
if
(
this
.
rightmenu
.
GetActivePane
()
==
pnl
.
panelId
)
if
(
activePane
==
pnl
.
panelId
)
currentactive
=
-
1
;
currentactive
=
-
1
;
}
else
{
}
else
{
if
(
pnl
.
btn
.
isDisabled
()
)
if
(
pnl
.
btn
.
isDisabled
()
)
...
@@ -194,7 +195,7 @@ define([
...
@@ -194,7 +195,7 @@ define([
if
(
pnl
.
needShow
)
{
if
(
pnl
.
needShow
)
{
pnl
.
needShow
=
false
;
pnl
.
needShow
=
false
;
priorityactive
=
i
;
priorityactive
=
i
;
}
else
if
(
this
.
rightmenu
.
GetActivePane
()
==
pnl
.
panelId
)
}
else
if
(
activePane
==
pnl
.
panelId
)
currentactive
=
i
;
currentactive
=
i
;
pnl
.
panel
.
setLocked
(
pnl
.
locked
);
pnl
.
panel
.
setLocked
(
pnl
.
locked
);
}
}
...
...
apps/spreadsheeteditor/main/app/view/RightMenu.js
View file @
a7e603ca
...
@@ -234,7 +234,7 @@ define([
...
@@ -234,7 +234,7 @@ define([
},
},
GetActivePane
:
function
()
{
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
()
{
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