mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-21 03:06:15 +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() {
|
(function() {
|
||||||
$('.task-sharing-and-flows').on('click', '#viewTaskFlow', function() {
|
$('.task-sharing-and-flows').on('click', '#viewTaskFlow', function() {
|
||||||
$('#statusFlowModal').modal('show');
|
$('#statusFlowModal').off('shown.bs.modal').on('shown.bs.modal', function() {
|
||||||
});
|
|
||||||
|
|
||||||
$('#statusFlowModal').on('show.bs.modal', function() {
|
|
||||||
var $modalBody = $(this).find('.modal-body');
|
var $modalBody = $(this).find('.modal-body');
|
||||||
animateSpinner($modalBody);
|
animateSpinner($modalBody);
|
||||||
$.get($(this).data('status-flow-url'), function(result) {
|
$.get($(this).data('status-flow-url'), function(result) {
|
||||||
|
@ -14,6 +11,9 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$('#statusFlowModal').modal('show');
|
||||||
|
});
|
||||||
|
|
||||||
function checkStatusState() {
|
function checkStatusState() {
|
||||||
$.getJSON($('.status-flow-dropdown').data('status-check-url'), (statusData) => {
|
$.getJSON($('.status-flow-dropdown').data('status-check-url'), (statusData) => {
|
||||||
if (statusData.status_changing) {
|
if (statusData.status_changing) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue