Skip to content

Commit

Permalink
Drop collapsing code for packages and repositories
Browse files Browse the repository at this point in the history
As the new design provides plenty of space to display many results in a
row, we don't plan to display collapse arrows for packages or
repositories for now.
  • Loading branch information
saraycp committed Nov 15, 2022
1 parent b3ad851 commit 891b9a8
Showing 1 changed file with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,24 +1,9 @@
// TODO: rename without "Beta" after the rollout of 'request_show_redesign'.
function updateBuildResultBeta() { // jshint ignore:line
var collapsedPackages = [];
var collapsedRepositories = {};
$('.result div.collapse:not(.show)').map(function(_index, domElement) {
var main = $(domElement).data('main') ? $(domElement).data('main') : 'project';
if (collapsedRepositories[main] === undefined) { collapsedRepositories[main] = []; }
if ($(domElement).data('repository') === undefined) {
collapsedPackages.push(main);
}
else {
collapsedRepositories[main].push($(domElement).data('repository'));
}
});

var ajaxDataShow = $('.build-results-content').data();
// show_all comes from the buildstatus partial
ajaxDataShow.show_all = $('#show_all').is(':checked'); // jshint ignore:line
ajaxDataShow.inRequestShowRedesign = true;
ajaxDataShow.collapsedPackages = collapsedPackages;
ajaxDataShow.collapsedRepositories = collapsedRepositories;

var buildResultsUrl = $('.build-results-content .build-refresh').data('build-results-url');

Expand Down

0 comments on commit 891b9a8

Please sign in to comment.