fix WebsiteAjaxTemplateMixin, added ajax 'sujets:update' form

This commit is contained in:
Arthur Gerbaud
2016-08-14 12:50:49 +02:00
parent 9e86e3eda5
commit 5dc5dae210
15 changed files with 176 additions and 116 deletions

View File

@@ -33,7 +33,7 @@
}
});
});
}
};
/* TODO: Use formAjaxSubmit above, but reload page on form success */
$('#new-sujet').click(function() {
$('#form-modal-body').load('{% url "sujets:create" %}?next={% url "maraudes:create" pk=maraude.id %}', function () {