asfgit closed pull request #59: IGNITE-10137 Add button 'Expand all' on 'PR failures' page
URL:
https://github.com/apache/ignite-teamcity-bot/pull/59
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js b/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
index 4e96144d..07157a82 100644
--- a/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
+++ b/ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js
@@ -1,6 +1,7 @@
function drawTable(srvId, suiteId, element) {
- element.append("<table id=\"serverContributions-" +
+ element.append("<div id='expandAllButton' align='right' style='margin-right:50px'></div><br>" +
+ "<table id=\"serverContributions-" +
srvId + "\" class=\"ui-widget ui-widget-content\">\n" +
" <thead>\n" +
" <tr class=\"ui-widget-header \">\n" +
@@ -44,6 +45,9 @@ function showContributionsTable(result, srvId, suiteId) {
tableForSrv.dataTable().fnDestroy();
+ if (isDefinedAndFilled(result) && result.length > 0)
+ $("#expandAllButton").html("<button class='more green' id='expandAll'>Expand all</button>");
+
var table = tableForSrv.DataTable({
order: [[1, 'desc']],
data: result,
@@ -134,6 +138,10 @@ function showContributionsTable(result, srvId, suiteId) {
]
});
+ $('#expandAll').on('click', function () {
+ $('.details-control').click();
+ });
+
// Add event listener for opening and closing details, enable to only btn 'td.details-control'
$('#' + tableId + ' tbody').on('click', 'td.details-control', function () {
var tr = $(this).closest('tr');
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[hidden email]
With regards,
Apache Git Services