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 div
pull/516/head
Iglocska 2015-06-03 11:38:19 +02:00
parent 17f4eecb2c
commit b200cbb83a
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
{"major":2, "minor":3, "hotfix":72}
{"major":2, "minor":3, "hotfix":73}

View File

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