Skip to content

Commit

Permalink
SAK-32198 Disable print button while loading users (sakaiproject#3932)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored and ottenhoff committed Feb 20, 2017
1 parent 25d1eb1 commit ebe6b8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion roster2/src/webapp/js/roster.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,16 @@

$('.roster-print-button').click(function (e) {

var button = $(this);

button.prop('disabled', true);

e.preventDefault();
roster.renderMembership({renderAll: true, callback: function () {

//$(window).on('load', function () {
$('#roster-members').waitForImages(function () {

button.prop('disabled', false);
window.print();
});
}});
Expand Down

0 comments on commit ebe6b8c

Please sign in to comment.