t %}
    $('.js-compromise-target').each(function () {
      $(this).click(function () {
        let url = $(this).attr('compromise-target-url');
        let targetId = $(this).attr('compromise-target-id');
        let csrftoken = $(this).attr('compromise-target-csrftoken');
        let statusCellId = '#target-status-' + targetId;
        let statusCell = $(statusCellId);
        $.ajaxSetup({
          beforeSend: function (xhr, settings) {
            if (!csrfSafeMethod(settings.type) && !this.crossDomai