Fix status flow loading when modal opens [SCI-9212]

This commit is contained in:
Martin Artnik 2023-09-06 15:33:58 +02:00
parent 60f9814eca
commit f22d777c2c

View file

@ -2,16 +2,16 @@
(function() {
$('.task-sharing-and-flows').on('click', '#viewTaskFlow', function() {
$('#statusFlowModal').modal('show');
});
$('#statusFlowModal').on('show.bs.modal', function() {
var $modalBody = $(this).find('.modal-body');
animateSpinner($modalBody);
$.get($(this).data('status-flow-url'), function(result) {
animateSpinner($modalBody, false);
$modalBody.html(result.html);
$('#statusFlowModal').off('shown.bs.modal').on('shown.bs.modal', function() {
var $modalBody = $(this).find('.modal-body');
animateSpinner($modalBody);
$.get($(this).data('status-flow-url'), function(result) {
animateSpinner($modalBody, false);
$modalBody.html(result.html);
});
});
$('#statusFlowModal').modal('show');
});
function checkStatusState() {