Skip to content

Commit

Permalink
Set overflow visible to dropdowns in test results filter to ensure th…
Browse files Browse the repository at this point in the history
…ey are displayed. Fixes #617.
  • Loading branch information
spalladino committed Dec 16, 2015
1 parent 499c5cb commit 53457f5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,19 @@ $(document).ready(function(){
}
});

var advancedTimeout = null;
$(".btn-toggle").click(function(){
$(".advanced").toggleClass('show');

// We want to set overflow visible after the expand animation has completed
var advanced = $(".advanced");
if (advanced.hasClass('show')) {
if (advancedTimeout) window.clearTimeout(advancedTimeout);
advanced.css('overflow', 'hidden');
} else {
advancedTimeout = window.setTimeout(function() { advanced.css('overflow', 'visible'); }, 500);
}

advanced.toggleClass('show');
$(this).toggleClass('up');
return false;
});
Expand Down

0 comments on commit 53457f5

Please sign in to comment.