Commit f0217b57 by Kálmán Viktor

dashboard: fix modal

parent c9159549
......@@ -40,12 +40,13 @@ $(function() {
type: 'POST',
data: $(this).closest('form').serialize(),
success: function(data, textStatus, xhr) {
var r = $('#confirmation-modal'); r.next('div').remove(); r.remove();
$('#confirmation-modal').modal("hide");
if(data.redirect) {
$('a[href="#activity"]').trigger("click");
}
else {
var r = $('#confirmation-modal'); r.next('div').remove(); r.remove();
$('body').append(data);
$('#confirmation-modal').modal('show');
$('#confirmation-modal').on('hidden.bs.modal', function() {
......
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