Skip to content

Commit

Permalink
Changes to add loading icon while fetching and generating the tabular…
Browse files Browse the repository at this point in the history
… report. JENKINS-32204
  • Loading branch information
menonvarun committed Dec 27, 2015
1 parent 78cc9d1 commit 2133c78
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
Expand Up @@ -83,6 +83,9 @@ Search: <input id="filter" class="table-filter" type="text" placeholder="Test/Cl
</div>
<br/>
<div id="tree">
<div id="table-loading" style="display: none;">
<img src="${resURL}/plugin/test-results-analyzer/images/loading2.gif"/>
</div>
<div class="table">

</div>
Expand Down
4 changes: 4 additions & 0 deletions src/main/webapp/css/table-style.css
Expand Up @@ -135,6 +135,10 @@
.row-heading input[type="checkbox"] {

}
#table-loading {
margin-left: 20%;
margin-top: 10%;
}



Binary file added src/main/webapp/images/loading2.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion src/main/webapp/js/testresult.js
Expand Up @@ -102,13 +102,14 @@ function populateTemplate(){
noOfBuilds = $j("#noofbuilds").val();
}
displayValues = $j("#show-build-durations").is(":checked");

$j("#table-loading").show();
remoteAction.getTreeResult(noOfBuilds,$j.proxy(function(t) {
var itemsResponse = t.responseObject();
treeMarkup = analyzerTemplate(itemsResponse);
$j(".table").html(treeMarkup);
addEvents();
generateCharts();
$j("#table-loading").hide();
},this));
}

Expand Down

0 comments on commit 2133c78

Please sign in to comment.