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
59bac2b2
Commit
59bac2b2
authored
Aug 30, 2016
by
Julia Radzhabova
Committed by
GitHub
Aug 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21 from ONLYOFFICE/release/v4.1.0
Release/v4.1.0
parents
d7b05c7a
7dc8c753
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
apps/presentationeditor/main/app/view/DocumentHolder.js
apps/presentationeditor/main/app/view/DocumentHolder.js
+19
-6
No files found.
apps/presentationeditor/main/app/view/DocumentHolder.js
View file @
59bac2b2
...
...
@@ -188,6 +188,12 @@ define([
var
onFocusObject
=
function
(
selectedElements
)
{
if
(
me
.
mode
.
isEdit
&&
me
.
currentMenu
&&
me
.
currentMenu
.
isVisible
()){
if
(
me
.
api
.
asc_getCurrentFocusObject
()
===
0
){
// thumbnails
if
(
me
.
slideMenu
===
me
.
currentMenu
)
{
me
.
currentMenu
.
options
.
initMenu
({
isSlideSelect
:
me
.
slideMenu
.
items
[
2
].
isVisible
(),
fromThumbs
:
true
});
me
.
currentMenu
.
alignPosition
();
}
}
else
{
var
obj
=
fillMenuProps
(
selectedElements
);
if
(
obj
)
{
if
(
obj
.
menu_to_show
===
me
.
currentMenu
)
{
...
...
@@ -196,6 +202,7 @@ define([
}
}
}
}
};
var
handleDocumentWheel
=
function
(
event
){
...
...
@@ -686,8 +693,11 @@ define([
};
var
onApiCurrentPages
=
function
(
number
)
{
if
(
me
.
currentMenu
&&
me
.
currentMenu
.
isVisible
())
if
(
me
.
currentMenu
&&
me
.
currentMenu
.
isVisible
())
{
if
(
me
.
_isFromSlideMenu
!==
true
&&
me
.
_isFromSlideMenu
!==
number
)
me
.
currentMenu
.
hide
();
me
.
_isFromSlideMenu
=
number
;
}
};
this
.
setApi
=
function
(
o
)
{
...
...
@@ -903,6 +913,7 @@ define([
caption
:
me
.
txtDeleteSlide
}).
on
(
'
click
'
,
_
.
bind
(
function
(
item
)
{
if
(
me
.
api
){
me
.
_isFromSlideMenu
=
true
;
me
.
api
.
DeleteSlide
();
me
.
fireEvent
(
'
editcomplete
'
,
this
);
...
...
@@ -1010,6 +1021,7 @@ define([
caption
:
me
.
txtNewSlide
}).
on
(
'
click
'
,
function
(
item
)
{
if
(
me
.
api
)
{
me
.
_isFromSlideMenu
=
true
;
me
.
api
.
AddSlide
();
me
.
fireEvent
(
'
editcomplete
'
,
this
);
...
...
@@ -1020,6 +1032,7 @@ define([
caption
:
me
.
txtDuplicateSlide
}).
on
(
'
click
'
,
function
(
item
){
if
(
me
.
api
)
{
me
.
_isFromSlideMenu
=
true
;
me
.
api
.
DublicateSlide
();
me
.
fireEvent
(
'
editcomplete
'
,
this
);
...
...
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