mirror of https://github.com/MISP/MISP
Removed debug code
parent
629e085ff7
commit
73f2944793
|
@ -53,7 +53,6 @@ function submitDeletion(context_id, action, type, id) {
|
|||
},
|
||||
data: formData,
|
||||
success:function (data, textStatus) {
|
||||
console.log(data);
|
||||
updateIndex(context_id, context);
|
||||
handleGenericAjaxResponse(data);
|
||||
},
|
||||
|
@ -357,34 +356,6 @@ function attributeListAnyProposalCheckBoxesChecked() {
|
|||
else $('.mass-proposal-select').hide();
|
||||
}
|
||||
|
||||
|
||||
function deleteSelectedAttributes(event) {
|
||||
var answer = confirm("Are you sure you want to delete all selected attributes?");
|
||||
if (answer) {
|
||||
var selected = [];
|
||||
$(".select_attribute").each(function() {
|
||||
if ($(this).is(":checked")) {
|
||||
var temp= $(this).data("id");
|
||||
selected.push(temp);
|
||||
}
|
||||
});
|
||||
$('#AttributeIds').attr('value', JSON.stringify(selected));
|
||||
var formData = $('#delete_selected').serialize();
|
||||
$.ajax({
|
||||
data: formData,
|
||||
cache: false,
|
||||
type:"POST",
|
||||
url:"/attributes/deleteSelected/" + event,
|
||||
success:function (data, textStatus) {
|
||||
updateIndex(event, 'event');
|
||||
var result = handleGenericAjaxResponse(data);
|
||||
if (result == true) eventUnpublish();
|
||||
},
|
||||
});
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
function multiSelectAction(event, context) {
|
||||
var settings = {
|
||||
deleteAttributes: {
|
||||
|
|
Loading…
Reference in New Issue