Commit 9cc124e8 by Kálmán Viktor

dashboard: wait modal to disappear

parent 064dbddf
...@@ -51,10 +51,12 @@ $(function() { ...@@ -51,10 +51,12 @@ $(function() {
} }
} }
else { else {
$('body').append(data);
$('#confirmation-modal').modal('show');
$('#confirmation-modal').on('hidden.bs.modal', function() { $('#confirmation-modal').on('hidden.bs.modal', function() {
$('#confirmation-modal').remove(); $('body').append(data);
$('#confirmation-modal').modal('show');
$('#confirmation-modal').on('hidden.bs.modal', function() {
$('#confirmation-modal').remove();
});
}); });
} }
}, },
......
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