Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Klaus Wölfel
erp5
Commits
21c4706b
Commit
21c4706b
authored
8 years ago
by
Kazuhiko Shiozaki
Browse files
Options
Download
Email Patches
Plain Diff
xhtml_style: disable installDoubleSubmitDialogPrevention in formwizard case.
parent
b64c770c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.js
...SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.js
+8
-7
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.js
View file @
21c4706b
...
...
@@ -359,13 +359,14 @@ function installDoubleSubmitDialogPrevention(confirmation_message) {
/* Install an handler to prevent submitting a dialog twice. */
$
(
document
).
ready
(
function
()
{
$
(
"
.dialog_submit_button
"
).
on
(
"
click
"
,
function
(
e
){
$
(
this
).
on
(
"
click.confirm
"
,
function
(
event
)
{
$
(
this
).
off
(
"
.confirm
"
);
if
(
!
confirm
(
confirmation_message
)
)
{
event
.
preventDefault
();
}
});
if
(
$
(
this
).
val
()
!=
"
Next
"
)
{
$
(
this
).
on
(
"
click.confirm
"
,
function
(
event
)
{
$
(
this
).
off
(
"
.confirm
"
);
if
(
!
confirm
(
confirmation_message
)
)
{
event
.
preventDefault
();
}
});
}
});
});
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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