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
Kazuhiko Shiozaki
gitlab-ce
Commits
4fc2dcc4
Commit
4fc2dcc4
authored
Mar 14, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug with JS error from dropdowns in filter area
parent
c4b35a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
app/assets/javascripts/breakpoints.coffee
app/assets/javascripts/breakpoints.coffee
+8
-4
No files found.
app/assets/javascripts/breakpoints.coffee
View file @
4fc2dcc4
...
...
@@ -10,7 +10,6 @@ class @Breakpoints
setup
:
->
allDeviceSelector
=
BREAKPOINTS
.
map
(
breakpoint
)
->
".device-
#{
breakpoint
}
"
return
if
$
(
allDeviceSelector
.
join
(
","
)).
length
# Create all the elements
...
...
@@ -18,12 +17,17 @@ class @Breakpoints
"<div class='device-
#{
breakpoint
}
visible-
#{
breakpoint
}
'></div>"
$
(
"body"
).
append
els
.
join
(
''
)
getBreakpointSiz
e
:
->
visibleDevic
e
:
->
allDeviceSelector
=
BREAKPOINTS
.
map
(
breakpoint
)
->
".device-
#{
breakpoint
}
"
$
(
allDeviceSelector
.
join
(
","
)).
filter
(
":visible"
)
$visibleDevice
=
$
(
allDeviceSelector
.
join
(
","
)).
filter
(
":visible"
)
getBreakpointSize
:
->
$visibleDevice
=
@
visibleDevice
# the page refreshed via turbolinks
if
not
$visibleDevice
().
length
@
setup
()
$visibleDevice
=
@
visibleDevice
()
return
$visibleDevice
.
attr
(
"class"
).
split
(
"visible-"
)[
1
]
@
get
:
->
...
...
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