Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Frederic Thoma
erp5
Commits
e4858d97
Commit
e4858d97
authored
Jul 31, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent submitting a dialog twice
Code from Sven
parent
9a04f8c4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
5 deletions
+27
-5
bt5/erp5_l10n_fr/MessageTranslationTemplateItem/fr/erp5_ui/translation.po
.../MessageTranslationTemplateItem/fr/erp5_ui/translation.po
+3
-0
bt5/erp5_l10n_fr/bt/revision
bt5/erp5_l10n_fr/bt/revision
+1
-1
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/dialog_main.xml
...emplateItem/portal_skins/erp5_xhtml_style/dialog_main.xml
+5
-2
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
...kinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
+17
-1
product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
+1
-1
No files found.
bt5/erp5_l10n_fr/MessageTranslationTemplateItem/fr/erp5_ui/translation.po
View file @
e4858d97
...
...
@@ -11205,6 +11205,9 @@ msgstr "Passe l'écriture au brouillard validé."
msgid "This action will post the transaction to the General Ledger. It can be journalized again thanks to the restart action"
msgstr "Passe l'écriture au brouillard validé."
msgid "This dialog has already been submitted. Do you want to submit again ?"
msgstr "Le dialogue a déjà été soumis. Voulez vous le soumettre à nouveau ?"
msgid "This document is not converted yet."
msgstr "Ce document n'est pas encore converti"
...
...
bt5/erp5_l10n_fr/bt/revision
View file @
e4858d97
207
\ No newline at end of file
208
\ No newline at end of file
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/dialog_main.xml
View file @
e4858d97
...
...
@@ -76,12 +76,15 @@
tal:content=
"python:here.Base_getFormViewDialogActionButtonTitle(form)"
>
Do Action
</span>
\n
</button>
\n
</div>
\n
<script
type=
"text/javascript"
\n
tal:define=
"message python:context.Base_translateString(\'This dialog has already been submitted. Do you want to submit again ?\').replace(\'\\\\\', \'\\\\\\\\\').replace(\'\\\'\', \'\\\\\\\'\')"
\n
tal:content=
"structure string:installDoubleSubmitDialogPrevention(\'$message\');"
>
\n
</script>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
\n
</tal:block>
]]>
</unicode>
</value>
</item>
...
...
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/erp5.js.xml
View file @
e4858d97
...
...
@@ -371,7 +371,23 @@ if (navigator.userAgent.toLowerCase().indexOf(\'firefox\') != -1)\n
$(document).ready(rewriteIndentedSelect);\n
$(document).ready(resizeIFrameOnLoad);\n
$(document).ready(addOnChangeEventHandler);\n
$(document).ready(indexAllCheckBoxesAtBTInstallationOnLoad);
$(document).ready(indexAllCheckBoxesAtBTInstallationOnLoad);\n
\n
\n
\n
function installDoubleSubmitDialogPrevention(confirmation_message) {\n
/* Install an handler to prevent submitting a dialog twice. */\n
$(document).ready( function() {\n
$(".dialog_submit_button").on("click", function(e){\n
$(this).on("click.confirm", function(event) {\n
$(this).off(".confirm");\n
if (! confirm(confirmation_message) ) {\n
event.preventDefault();\n
}\n
});\n
});\n
});\n
}
]]>
</string>
</value>
</item>
...
...
product/ERP5/bootstrap/erp5_xhtml_style/bt/revision
View file @
e4858d97
1105
\ No newline at end of file
1107
\ No newline at end of file
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