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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
c940fe2a
Commit
c940fe2a
authored
Sep 27, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lazy load images in mobile sidebar & header
Closes #38276
parent
05d8e87d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+4
-1
app/assets/javascripts/right_sidebar.js
app/assets/javascripts/right_sidebar.js
+2
-0
No files found.
app/assets/javascripts/main.js
View file @
c940fe2a
...
...
@@ -302,7 +302,10 @@ $(function () {
return
$container
.
remove
();
// Commit show suppressed diff
});
$
(
'
.navbar-toggle
'
).
on
(
'
click
'
,
()
=>
$
(
'
.header-content
'
).
toggleClass
(
'
menu-expanded
'
));
$
(
'
.navbar-toggle
'
).
on
(
'
click
'
,
()
=>
{
$
(
'
.header-content
'
).
toggleClass
(
'
menu-expanded
'
);
gl
.
lazyLoader
.
loadCheck
();
});
// Show/hide comments on diff
$body
.
on
(
'
click
'
,
'
.js-toggle-diff-comments
'
,
function
(
e
)
{
var
$this
=
$
(
this
);
...
...
app/assets/javascripts/right_sidebar.js
View file @
c940fe2a
...
...
@@ -43,6 +43,8 @@ import Cookies from 'js-cookie';
$allGutterToggleIcons
.
removeClass
(
'
fa-angle-double-left
'
).
addClass
(
'
fa-angle-double-right
'
);
$
(
'
aside.right-sidebar
'
).
removeClass
(
'
right-sidebar-collapsed
'
).
addClass
(
'
right-sidebar-expanded
'
);
$
(
'
.page-with-sidebar
'
).
removeClass
(
'
right-sidebar-collapsed
'
).
addClass
(
'
right-sidebar-expanded
'
);
gl
.
lazyLoader
.
loadCheck
();
}
if
(
!
triggered
)
{
return
Cookies
.
set
(
"
collapsed_gutter
"
,
$
(
'
.right-sidebar
'
).
hasClass
(
'
right-sidebar-collapsed
'
));
...
...
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