mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-20 14:31:30 +08:00
Fix status flow loading when modal opens [SCI-9212]
This commit is contained in:
parent
60f9814eca
commit
f22d777c2c
1 changed files with 9 additions and 9 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue