mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-15 21:56:12 +08:00
16 lines
450 B
JavaScript
16 lines
450 B
JavaScript
/* global animateSpinner */
|
|
|
|
(function() {
|
|
$('.task-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);
|
|
});
|
|
});
|
|
}());
|