Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Tatuya Kamada
gitlab-ce
Commits
bbad61b9
Commit
bbad61b9
authored
Dec 07, 2016
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Droplab
parent
15454eb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/assets/javascripts/droplab/droplab.js
app/assets/javascripts/droplab/droplab.js
+3
-2
No files found.
app/assets/javascripts/droplab/droplab.js
View file @
bbad61b9
...
@@ -212,7 +212,8 @@ require('./window')(function(w){
...
@@ -212,7 +212,8 @@ require('./window')(function(w){
var
self
=
this
;
var
self
=
this
;
window
.
addEventListener
(
'
click
'
,
function
(
e
){
window
.
addEventListener
(
'
click
'
,
function
(
e
){
var
thisTag
=
e
.
target
;
var
thisTag
=
e
.
target
;
if
(
thisTag
.
tagName
===
'
LI
'
||
thisTag
.
tagName
===
'
A
'
){
if
(
thisTag
.
tagName
===
'
LI
'
||
thisTag
.
tagName
===
'
A
'
||
thisTag
.
tagName
===
'
BUTTON
'
){
// climb up the tree to find the UL
// climb up the tree to find the UL
thisTag
=
utils
.
closest
(
thisTag
,
'
UL
'
);
thisTag
=
utils
.
closest
(
thisTag
,
'
UL
'
);
}
}
...
@@ -556,7 +557,7 @@ var camelize = function(str) {
...
@@ -556,7 +557,7 @@ var camelize = function(str) {
};
};
var
closest
=
function
(
thisTag
,
stopTag
)
{
var
closest
=
function
(
thisTag
,
stopTag
)
{
while
(
thisTag
.
tagName
!==
stopTag
&&
thisTag
.
tagName
!==
'
HTML
'
){
while
(
thisTag
!==
null
&&
thisTag
.
tagName
!==
stopTag
&&
thisTag
.
tagName
!==
'
HTML
'
){
thisTag
=
thisTag
.
parentNode
;
thisTag
=
thisTag
.
parentNode
;
}
}
return
thisTag
;
return
thisTag
;
...
...
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