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
Léo-Paul Géneau
gitlab-ce
Commits
f25ba6e0
Commit
f25ba6e0
authored
Feb 04, 2016
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resize sidebar on initial page refresh.
parent
e0efdc4b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
app/assets/javascripts/application.js.coffee
app/assets/javascripts/application.js.coffee
+10
-2
No files found.
app/assets/javascripts/application.js.coffee
View file @
f25ba6e0
...
@@ -269,11 +269,19 @@ $ ->
...
@@ -269,11 +269,19 @@ $ ->
'<div class="device-lg visible-lg"></div>'
)
'<div class="device-lg visible-lg"></div>'
)
checkBootstrapBreakpoints
()
checkBootstrapBreakpoints
()
$
(
window
).
on
"resize"
,
(
e
)
->
fitSidebarForSize
=
->
oldBootstrapBreakpoint
=
bootstrapBreakpoint
oldBootstrapBreakpoint
=
bootstrapBreakpoint
checkBootstrapBreakpoints
()
checkBootstrapBreakpoints
()
if
bootstrapBreakpoint
!=
oldBootstrapBreakpoint
if
bootstrapBreakpoint
!=
oldBootstrapBreakpoint
$
(
document
).
trigger
(
'breakpoint:change'
,[
bootstrapBreakpoint
])
$
(
document
).
trigger
(
'breakpoint:change'
,
[
bootstrapBreakpoint
])
checkInitialSidebarSize
=
->
if
bootstrapBreakpoint
is
"xs"
or
"sm"
$
(
document
).
trigger
(
'breakpoint:change'
,
[
bootstrapBreakpoint
])
$
(
window
).
on
"resize"
,
(
e
)
->
fitSidebarForSize
()
setBootstrapBreakpoints
()
setBootstrapBreakpoints
()
checkInitialSidebarSize
()
new
Aside
()
new
Aside
()
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