You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2018/11/10 12:36:57 UTC
[ignite-teamcity-bot] branch master updated: IGNITE-10137 Add
button 'Expand all' on 'PR failures' page - Fixes #59.
This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git
The following commit(s) were added to refs/heads/master by this push:
new 760197d IGNITE-10137 Add button 'Expand all' on 'PR failures' page - Fixes #59.
760197d is described below
commit 760197d6565cadca90016e4732f510b5b4cb4c53
Author: zzzadruga <zz...@gmail.com>
AuthorDate: Sat Nov 10 15:36:48 2018 +0300
IGNITE-10137 Add button 'Expand all' on 'PR failures' page - Fixes #59.
Signed-off-by: Dmitriy Pavlov <dp...@apache.org>
---
ignite-tc-helper-web/src/main/webapp/js/prs-1.0.js | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
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 a72e05a..22073b7 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,
@@ -135,6 +139,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');