Commit 757e2821 by Damien Moulard

replace validate button by loader after validating tav payment form

parent f2b524a9
......@@ -548,6 +548,18 @@ $(function() {
}
});
/**
* Display loader after validating Encaissement form
*/
$("form[name='formEncaissement']").on("submit", (event) => {
// non strict equality check
if (formEncaissementValidation == true) {
$("#formEncaissement_save").parent().append('<span class="spinner-border" role="status" aria-hidden="true"></span>');
$("#formEncaissement_save").hide()
}
})
// $('.js-datepicker').datepicker({
// closeText: 'Fermer',
// prevText: '&#x3c;Préc',
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -3,7 +3,7 @@
"app": {
"js": [
"/build/runtime.6ad5c9da.js",
"/build/app.fe8f482e.js"
"/build/app.e7b1f3b8.js"
],
"css": [
"/build/app.8f9aaf53.css"
......
{
"build/app.css": "/build/app.8f9aaf53.css",
"build/app.js": "/build/app.fe8f482e.js",
"build/app.js": "/build/app.e7b1f3b8.js",
"build/admin.css": "/build/admin.5dc0eea7.css",
"build/admin.js": "/build/admin.cee4d78d.js",
"build/runtime.js": "/build/runtime.6ad5c9da.js",
......
......@@ -63,6 +63,9 @@
{{ form_end(form) }}
</div>
</div>
<script type="text/javascript">
var formEncaissementValidation = '{{ validation }}';
</script>
{% endblock %}
{% block footer %}{% endblock footer %}
\ No newline at end of file
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 to comment