scinote-web/app/assets/javascripts/my_modules/status_flow.js

17 lines
450 B
JavaScript
Raw Normal View History

2020-07-22 15:45:56 +08:00
/* global animateSpinner */
(function() {
2020-07-27 22:36:21 +08:00
$('.task-flows').on('click', '#viewTaskFlow', function() {
$('#statusFlowModal').modal('show');
});
2020-07-22 15:45:56 +08:00
$('#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);
});
});
}());