Commit 9cc124e8 by Kálmán Viktor

dashboard: wait modal to disappear

parent 064dbddf
...@@ -51,11 +51,13 @@ $(function() { ...@@ -51,11 +51,13 @@ $(function() {
} }
} }
else { else {
$('#confirmation-modal').on('hidden.bs.modal', function() {
$('body').append(data); $('body').append(data);
$('#confirmation-modal').modal('show'); $('#confirmation-modal').modal('show');
$('#confirmation-modal').on('hidden.bs.modal', function() { $('#confirmation-modal').on('hidden.bs.modal', function() {
$('#confirmation-modal').remove(); $('#confirmation-modal').remove();
}); });
});
} }
}, },
error: function(xhr, textStatus, error) { error: function(xhr, textStatus, error) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment