BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e7de234d
Commit
e7de234d
authored
Jun 02, 2017
by
Filipa Lacerda
Committed by
Phil Hughes
Jun 02, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use throttle when window is resized
parent
aea03d7c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
build.js
app/assets/javascripts/build.js
+2
-1
_sidebar.html.haml
app/views/projects/jobs/_sidebar.html.haml
+0
-3
No files found.
app/assets/javascripts/build.js
View file @
e7de234d
...
...
@@ -64,7 +64,7 @@ window.Build = (function () {
$
(
window
)
.
off
(
'resize.build'
)
.
on
(
'resize.build'
,
this
.
sidebarOnResize
.
bind
(
this
));
.
on
(
'resize.build'
,
_
.
throttle
(
this
.
sidebarOnResize
.
bind
(
this
),
100
));
this
.
updateArtifactRemoveDate
();
...
...
@@ -250,6 +250,7 @@ window.Build = (function () {
Build
.
prototype
.
sidebarOnResize
=
function
()
{
this
.
toggleSidebar
(
this
.
shouldHideSidebarForViewport
());
this
.
verifyTopPosition
();
if
(
this
.
$scrollContainer
.
getNiceScroll
(
0
))
{
...
...
app/views/projects/jobs/_sidebar.html.haml
View file @
e7de234d
...
...
@@ -130,6 +130,3 @@
=
build
.
id
-
if
build
.
retried?
%i
.fa.fa-refresh.has-tooltip
{
data:
{
container:
'body'
,
placement:
'bottom'
},
title:
'Job was retried'
}
:javascript
new
Sidebar
();
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