Commit 19142195 authored by Théo GUILLON's avatar Théo GUILLON
Browse files

Correction : boutons

Correction : non execution du jquery si le submit est "Cancel"
parent f8b299ce
......@@ -180,16 +180,10 @@ echo $this->WebcilForm->create('Formulaire', [
?>
</div>
<div class="row">
<!-- Groupe bouton -->
<div class="col-md-12 top17 text-center">
<div class="btn-group">
<?php
// Groupe de boutons
echo $this->WebcilForm->buttons(['Cancel', 'Save']);
?>
</div>
</div>
<div style="clear: both">
<?php
echo $this->WebcilForm->buttons(['Cancel', 'Save']);
?>
</div>
</div>
......
$(document).ready(function () {
$('#container').on('submit', function() {
$('#container').on('click', ':submit', function() {
if ($(this).val() === 'Cancel') {
return ;
}
let success = true,
dynamicFields = [];
......
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