').append($('').html(data[i].username))
+ .append($(' | ').text(data[i].full_name))
+ .append($(' | ').text(request_time)
+ .addClass('datetimefield'))
+ .append($(' | ').html(buttons))
+ .addClass('uar-dynamic')
+ .attr("data-userinfo",JSON.stringify(data[i]));
+ $('#uartable').append(tr);
+ }
+ $('#uartable button.primary').on('click', review_uar);
+ }
+ if(typeof(update_locales) == 'function')
+ update_locales();
+ })
+ .fail(function() {
+ console.log(arguments);
+ });
});
diff --git a/vinny/static/vinny/js/sendmsg.js b/vinny/static/vinny/js/sendmsg.js
index 95ef5a4..7562a2b 100644
--- a/vinny/static/vinny/js/sendmsg.js
+++ b/vinny/static/vinny/js/sendmsg.js
@@ -138,6 +138,17 @@ $(document).ready(function() {
});
function submitFormWithoutFiles() {
+ let content = $('#id_content').val();
+ if($('#psirt_url').val()) {
+ content = content + "\n\nFollowing PSIRT Information " +
+ "can be used to validate the Organization identity:\n\n" +
+ "PSIRT URL : " + $('#psirt_url').val() + "\n\n";
+ } else if($('#group_admin_inactive').is(':checked')) {
+ content = content + "\n\n***Note*** Current Group Administrator " +
+ "for this organization is no longer active! ";
+ $('#vendor_euid').val('');
+ }
+ $('#id_content').val(content);
$('#sendbutton').prop('disabled', true);
$("#sendbutton").html("Sending");
$.ajax({
@@ -317,18 +328,122 @@ $("#file-title-wrap").show();
searchThreads(event);
});
}
-
- $(document).on("change", '#id_case', function(event) {
+ function get_cases() {
var selected_case = $("#id_case option:selected").val();
- $.ajax({
+ if(selected_case)
+ $.ajax({
url: '/vince/comm/auto/api/coord/'+selected_case,
type: "GET",
success: function(data) {
$("#coords_list").html(data);
}
});
- });
-
+ }
+ $(document).on("change", '#id_case', get_cases);
+ function old_vendor_info() {
+ $('.new-vendor').remove();
+ if($('.old-vendor').length)
+ return;
+ let info = $("");
+ info.append($(" ").addClass("new-vendor"));
+ /*
+ {name: "psirt_email",
+ label: "Vendor PSIRT/Security Contact Email",
+ type: "text", example: "psirt@example.com"},
+ */
+ let fields = [{name: "group_admin_inactive",
+ label: "Current Group Admin is no longer active",
+ placeholder: "Current Group Admin is no longer active",
+ type: "checkbox"}];
+ fields.forEach(function(d) {
+ info.append($(' ').addClass("form-group old-vendor")
+ .append($(" ").attr({id: d.name,
+ type:d.type,
+ name:d.name,
+ placeholder:d.example,
+ autocomplete:"off",
+ maxlength:"255"}))
+ .append($(" |