/* 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); }); }); }());