Skip to content
Snippets Groups Projects
Commit e7de234d authored by Filipa Lacerda's avatar Filipa Lacerda Committed by Phil Hughes
Browse files

Use throttle when window is resized

parent aea03d7c
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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();
 
Loading
Loading
@@ -250,6 +250,7 @@ window.Build = (function () {
 
Build.prototype.sidebarOnResize = function () {
this.toggleSidebar(this.shouldHideSidebarForViewport());
this.verifyTopPosition();
 
if (this.$scrollContainer.getNiceScroll(0)) {
Loading
Loading
Loading
Loading
@@ -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();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment