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

17 lines
462 B
JavaScript
Raw Normal View History

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