Skip to content

Commit

Permalink
Make the build result popovers clickable
Browse files Browse the repository at this point in the history
This solves two issues:

* On mobile devices the popovers were not accessible due to the hover
* Clicking on a popover makes it stick, which allows users to c&p the
  popover message. Since these messages can be quite specific,
  containing package names and versions, this can be very useful.
  • Loading branch information
bgeuken authored and coolo committed Nov 14, 2018
1 parent 302f88b commit 81e5a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/assets/javascripts/webui2/buildresult.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function updateBuildResult(index) { // jshint ignore:line
},
complete: function() {
$('#build' + index + '-reload').removeClass('fa-spin');
$('[data-toggle="popover"]').popover({ trigger: 'hover' });
$('[data-toggle="popover"]').popover({ trigger: 'hover click' });
}
});
}
Expand Down

0 comments on commit 81e5a00

Please sign in to comment.