ajax
This commit is contained in:
@@ -2,14 +2,16 @@
|
||||
{% set inline_errors = form.inline_errors is not null ? form.inline_errors : config.plugins.form.inline_errors(false) %}
|
||||
{% set status_mapping = {'success':'green', 'error': 'red', 'warning': 'yellow'} %}
|
||||
{% set message = inline_errors and form.messages ? "FORM.VALIDATION_FAIL"|t : form.message %}
|
||||
<script type="text/javascript">
|
||||
var $ok = $('.ok');
|
||||
var $send = $('#send-valide');
|
||||
|
||||
$ok.on('click', function () {
|
||||
$(this).parent('#send-valide').remove();
|
||||
location.reload();
|
||||
})
|
||||
<script type="text/javascript">
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
$(".ok").on('click', function () {
|
||||
$(this).parent('#send-valide').remove();
|
||||
location.reload();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
|
Reference in New Issue
Block a user