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
1085d628
Commit
1085d628
authored
Jun 21, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Баг с открытием меню автофигур (закрывалось подменю).
parent
2840a7fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
apps/spreadsheeteditor/main/app/controller/Main.js
apps/spreadsheeteditor/main/app/controller/Main.js
+8
-5
No files found.
apps/spreadsheeteditor/main/app/controller/Main.js
View file @
1085d628
...
@@ -150,15 +150,18 @@ define([
...
@@ -150,15 +150,18 @@ define([
// NOTE: fix double click mozilla copy-paste
// NOTE: fix double click mozilla copy-paste
if
(
e
&&
e
.
target
&&
e
.
target
.
id
&&
(
e
.
target
.
id
===
'
clipboard-helper-text
'
||
e
.
target
.
id
===
'
area_id
'
))
{
if
(
e
&&
e
.
target
&&
(
e
.
target
.
id
===
'
clipboard-helper-text
'
))
{
me
.
api
.
asc_enableKeyEvents
(
true
);
me
.
api
.
asc_enableKeyEvents
(
true
);
return
;
return
;
}
}
if
(
this
.
isAppDisabled
===
true
)
return
;
if
(
this
.
isAppDisabled
===
true
)
return
;
me
.
api
.
asc_enableKeyEvents
(
false
);
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
if
(
e
&&
e
.
target
&&
!
/area_id/
.
test
(
e
.
target
.
id
))
{
me
.
dontCloseDummyComment
=
true
;
me
.
api
.
asc_enableKeyEvents
(
false
);
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
me
.
dontCloseDummyComment
=
true
;
}
});
});
$
(
"
#editor_sdk
"
).
focus
(
function
(
e
)
{
$
(
"
#editor_sdk
"
).
focus
(
function
(
e
)
{
...
@@ -169,7 +172,7 @@ define([
...
@@ -169,7 +172,7 @@ define([
$
(
document
.
body
).
on
(
'
blur
'
,
'
input, textarea
'
,
function
(
e
)
{
$
(
document
.
body
).
on
(
'
blur
'
,
'
input, textarea
'
,
function
(
e
)
{
if
(
this
.
isAppDisabled
===
true
)
return
;
if
(
this
.
isAppDisabled
===
true
)
return
;
if
(
!
me
.
isModalShowed
&&
!
(
me
.
loadMask
&&
me
.
loadMask
.
isVisible
()))
{
if
(
!
me
.
isModalShowed
&&
!
(
me
.
loadMask
&&
me
.
loadMask
.
isVisible
())
&&
!
/area_id/
.
test
(
e
.
target
.
id
)
)
{
me
.
api
.
asc_enableKeyEvents
(
true
);
me
.
api
.
asc_enableKeyEvents
(
true
);
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
if
(
/msg-reply/
.
test
(
e
.
target
.
className
))
me
.
dontCloseDummyComment
=
false
;
me
.
dontCloseDummyComment
=
false
;
...
...
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