1+ /* exported updateRpmlintResult, updateBuildResult, updateArchDisplay, toggleBuildInfo */
2+ /* global initializePopovers */
3+
14// TODO: replace with the content of
25// app/assets/javascripts/webui/request_show_redesign/build_results.js
36// after the rollout of 'request_show_redesign'.
47
5- function updateRpmlintResult ( index ) { // jshint ignore:line
8+ function updateRpmlintResult ( index ) {
69 $ ( '#rpm' + index + '-reload' ) . addClass ( 'fa-spin' ) ;
710 $ . ajax ( {
811 url : '/package/rpmlint_result' ,
@@ -19,7 +22,7 @@ function updateRpmlintResult(index) { // jshint ignore:line
1922 } ) ;
2023}
2124
22- function updateBuildResult ( index ) { // jshint ignore:line
25+ function updateBuildResult ( index ) {
2326 var collapsedPackages = [ ] ;
2427 var collapsedRepositories = { } ;
2528 $ ( '.result div.collapse:not(.show)' ) . map ( function ( _index , domElement ) {
@@ -49,12 +52,12 @@ function updateBuildResult(index) { // jshint ignore:line
4952 } ,
5053 complete : function ( ) {
5154 $ ( '#build' + index + '-reload' ) . removeClass ( 'fa-spin' ) ;
52- initializePopovers ( '[data-toggle="popover"]' ) ; // jshint ignore:line
55+ initializePopovers ( '[data-toggle="popover"]' ) ;
5356 }
5457 } ) ;
5558}
5659
57- function updateArchDisplay ( index ) { // jshint ignore:line
60+ function updateArchDisplay ( index ) {
5861 $ ( '.rpmlint_arch_select_' + index ) . hide ( ) ;
5962 $ ( 'select[name="rpmlint_arch_select_' + index + '_' + $ ( '#rpmlint_repo_select_' + index + ' option:selected' ) . attr ( 'value' ) + '"]' ) . show ( ) ;
6063 updateRpmlintDisplay ( index ) ;
@@ -75,7 +78,7 @@ function updateRpmlintDisplay(index) {
7578}
7679
7780// TODO: Stop using toggleBuildInfo in favor of the generic toggleCollapsibleTooltip
78- function toggleBuildInfo ( ) { // jshint ignore:line
81+ function toggleBuildInfo ( ) {
7982 $ ( '.toggle-build-info' ) . on ( 'click' , function ( ) {
8083 var replaceTitle = $ ( this ) . attr ( 'title' ) === 'Click to keep it open' ? 'Click to close it' : 'Click to keep it open' ;
8184 var infoContainer = $ ( this ) . parents ( '.toggle-build-info-parent' ) . next ( ) ;
0 commit comments