updates stats inside the modal in compterendu creation

This commit is contained in:
artus
2018-10-21 12:20:57 +02:00
parent 416d7d47f7
commit b0b4a4cbe6
2 changed files with 15 additions and 52 deletions

View File

@@ -32,13 +32,18 @@
$.fn.openModalEvent = function(id, href, title)
{
$('#'+id).click(function() {
$.fn.openModal(href,title);
});
};
$.fn.openModal = function(href, title)
{
$('#form-modal-body').load(href, function()
{
$('.modal-title').text(title);
$('#form-modal').modal('toggle');
formAjaxSubmit("#form-modal-body form", "#form-modal");
});
});
};
})(jQuery);