multiple fixes in compterendu and related scripts
This commit is contained in:
6
website/static/scripts/bootstrap-modal.js
vendored
6
website/static/scripts/bootstrap-modal.js
vendored
@@ -6,7 +6,7 @@
|
||||
var formAjaxSubmit = function(form, modal)
|
||||
{
|
||||
$(form).submit(function (e) {
|
||||
e.preventDefault();
|
||||
e.preventDefault();
|
||||
$.ajax({
|
||||
type: $(this).attr('method'),
|
||||
url: $(this).attr('action'),
|
||||
@@ -16,8 +16,8 @@
|
||||
$(modal).find('.modal-body').html(xhr);
|
||||
formAjaxSubmit(form, modal);
|
||||
} else {
|
||||
$(modal).modal('toggle');
|
||||
// Reload page ?
|
||||
$(modal).modal('hide');
|
||||
// Reload page ?
|
||||
location.reload()
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user