mirror of https://github.com/MISP/MISP
AJAX attribute creation would block a follow-up publish request, fixes #514
- Popover_form purged after the form has been submitted - a duplicate hidden div was created for confirmation popups within the attribute creation popup and clicking publish populated the wrong divpull/516/head
parent
17f4eecb2c
commit
b200cbb83a
|
@ -1 +1 @@
|
|||
{"major":2, "minor":3, "hotfix":72}
|
||||
{"major":2, "minor":3, "hotfix":73}
|
||||
|
|
|
@ -14,9 +14,9 @@ function publishPopup(id, type) {
|
|||
if (type == "publish") action = "publish";
|
||||
var destination = 'attributes';
|
||||
$.get( "/events/" + action + "/" + id, function(data) {
|
||||
$("#confirmation_box").html(data);
|
||||
$("#confirmation_box").fadeIn();
|
||||
$("#gray_out").fadeIn();
|
||||
$("#confirmation_box").html(data);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -505,6 +505,7 @@ function submitPopoverForm(context_id, referer, update_context_id) {
|
|||
type:"post",
|
||||
url:url
|
||||
});
|
||||
$("#popover_form").empty();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue