data: formElt.serialize()}
).success(function (htmlResponse) {
var issueElt = formElt.closest('[data-issue-key]');
- issueElt.empty().append(htmlResponse);
+ var replaced = $j(htmlResponse);
+ issueElt.replaceWith(replaced);
+
// re-enable the links opening modal popups
- issueElt.find('.open-modal').modal();
+ replaced.find('.open-modal').modal();
}
).fail(function (jqXHR, textStatus) {
closeIssueForm(elt);
data: parameters
}
).success(function (htmlResponse) {
- issueElt.empty().append(htmlResponse);
+ var replaced = $j(htmlResponse);
+ issueElt.replaceWith(replaced);
// re-enable the links opening modal popups
- issueElt.find('.open-modal').modal();
+ replaced.find('.open-modal').modal();
}
).fail(function (jqXHR, textStatus) {
closeIssueForm(elt);