Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Libriciel
web-DPO
Commits
19142195
Commit
19142195
authored
Aug 10, 2020
by
Théo GUILLON
Browse files
Correction : boutons
Correction : non execution du jquery si le submit est "Cancel"
parent
f8b299ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/View/Formulaires/edit.ctp
View file @
19142195
...
...
@@ -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>
...
...
app/webroot/js/FormulaireGenerator/saveFieldsFormulaire.js
View file @
19142195
$
(
document
).
ready
(
function
()
{
$
(
'
#container
'
).
on
(
'
submit
'
,
function
()
{
$
(
'
#container
'
).
on
(
'
click
'
,
'
:submit
'
,
function
()
{
if
(
$
(
this
).
val
()
===
'
Cancel
'
)
{
return
;
}
let
success
=
true
,
dynamicFields
=
[];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment