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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
erp5
Commits
e4858d97
Commit
e4858d97
authored
11 years ago
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent submitting a dialog twice
Code from Sven
parent
9a04f8c4
master
afs
afs-manifest
afs_fix
allow_login_change
allow_login_change_differentiate_id_and_login
allow_login_change_wip
arnau
arnau-kns
arnau-kns-without-property-mapping
auto_extend_select_list
autoflake
backup_erp5_workflow
bk_erp5ish_actions_tool
bk_sqlcatalog
cache
catalog_fulltext
catalog_fulltext_old
cedric
cedriclen
cedriclen-eos
change_http_exchange_api
cherry-pick-4a8e045d
clean_up_upgrader
cleanup_acquisition_base_category
compact_title_no_reference
couscous
credential_update_action
datetimefield
douglas_forum
dream_distributor
dsn-phase3
eos-dev
erp5-component
erp5-data-notebook
erp5-forum
erp5-preference
erp5-release
erp5-slapos-upgrade
erp5-vifib
erp5-vifib-cleanup
erp5_calendar
erp5_catalog
erp5_ci
erp5_corporate_identity
erp5_free_subscription
erp5_payslip_migration
erp5_recruiting
erp5_web_forwarder
erp5_web_templates
erp5_workflow
erp5testnode_max_timeout
feat/no_getPrice_on_edit
feat/no_useless_records_in_predicate_table
feat/wendelin-py-data
fix/allowing_in_restricted
fix/clone_transformation
fix/inventory_api_variation_category
fix/login_validate_check_consistency
for_testrunner_1
for_testrunner_2
formbox
gabriel
gabriel-fix-rounding-in-accounting-generation
gabriel-fix-rounding-in-accounting-generation2
gadget-json-value
http_cache_fix
improve_default_caching_policy_manager
isDeletable
item_tracking_graph_editor
jerome-bt-reference-doc
jerome-test
jerome_events
jerome_graph_editor_renderjs
jerome_new_style_solve_divergence
jerome_user_preference_time_zone
jm/form-action-guard
joblib-activity
kns
kns-kr
mame-erp5_project-cleanup
mame-test-stock-indexation
mame-work
master-erp5-test-result-scalability
master-erp5-test-result-scalability-rebase
master_calendar_wip_patches
master_calendar_wip_patches_extend_security
master_no_guard_on_workflow_transition
master_no_guard_on_workflow_transition_plus_calendar_wip_patchs
mmariani-inventory
mrp
nexedi-erp5-jp
no_longer_simulated_state
officejs
officejs_clean
portal_callables
portal_solver_process_security_configuration
rebased_mrp
reindex_calendar_after_change_calendar_exception
reverse_logistics
rewrite_test_21_AcquiredPortalType
romain-fulltext
scalability-master2-rebase
scalability-rebase
shop-box
sms_more_than_140_characters
strict_catalog
syncml
taskdistribution-xmlrpc-binary
test_page
testnode_software_link
timezones
tmp/getInstalledBusinessTemplate_never_installed_bt
tristan
tristan-merge
tristan-performance
view-aggregated-amounts
vivekpab_erp5webrenderjs_layoutconfig
vivekpab_jabberclient
vivekpab_renderjs_interfaces
wenjie
wenjie_branch
wip_erp5_event
erp5.util-0.4.46
erp5.util-0.4.44
erp5.util-0.4.43
erp5.util-0.4.41
erp5.util-0.4.40
erp5.util-0.4.37
No related merge requests found
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"
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_l10n_fr/bt/revision
View file @
e4858d97
207
\ No newline at end of file
208
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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>
...
...
This diff is collapsed.
Click to expand it.
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>
...
...
This diff is collapsed.
Click to expand it.
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
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