You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by de...@apache.org on 2017/09/17 12:29:31 UTC
[myfaces-trinidad] 05/10: TRINIDAD-2194 - Trinidad PPR blocking
does not work with 2 clicks that post. Thanks Venkata Guddanti for the
patch!
This is an automated email from the ASF dual-hosted git repository.
deki pushed a commit to branch 2.0.0.1-branch
in repository https://gitbox.apache.org/repos/asf/myfaces-trinidad.git
commit 79431247e8f7f025f5e1f4b0f26762fda06631bd
Author: Max Starets <ms...@apache.org>
AuthorDate: Wed Apr 11 18:51:48 2012 +0000
TRINIDAD-2194 - Trinidad PPR blocking does not work with 2 clicks that post. Thanks Venkata Guddanti for the patch!
---
trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js b/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js
index 74e3166..2d6dab7 100644
--- a/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js
+++ b/trinidad-impl/src/main/javascript/META-INF/adf/jsLibs/Core.js
@@ -3801,6 +3801,12 @@ function _submitPartialChange(
if (!form)
return false;
+ // Prevent a submission if we are currently blocking or if we have a timeout set to do blocking
+ // In IE8 the JS engine is very slow and form submission takes time and if the user clicks a link again, the second
+ // click can sneek in before the timeout function is called
+ if(window._pprBlocking || window._pprTimeoutFunc)
+ return false;
+
// Tack on the "partial" event parameter parameter
parameters = _addFormParameter(parameters, "partial", "true");
--
To stop receiving notification emails like this one, please contact
"commits@myfaces.apache.org" <co...@myfaces.apache.org>.