mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-19 02:07:10 +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,10 +2,7 @@
|
|||
|
||||
(function() {
|
||||
$('.task-sharing-and-flows').on('click', '#viewTaskFlow', function() {
|
||||
$('#statusFlowModal').modal('show');
|
||||
});
|
||||
|
||||
$('#statusFlowModal').on('show.bs.modal', function() {
|
||||
$('#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) {
|
||||
|
@ -14,6 +11,9 @@
|
|||
});
|
||||
});
|
||||
|
||||
$('#statusFlowModal').modal('show');
|
||||
});
|
||||
|
||||
function checkStatusState() {
|
||||
$.getJSON($('.status-flow-dropdown').data('status-check-url'), (statusData) => {
|
||||
if (statusData.status_changing) {
|
||||
|
|
Loading…
Add table
Reference in a new issue