From f0395984109bb279b6dac157bff885b45e489a52 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Mon, 1 Jun 2009 23:58:49 -0700 Subject: Move recaptcha widget into a view for clarity. Also, wrap it in a setTimeout() call so that on subsequent reloads (which happen when you fail to validate the form) it has time to rebuild the DOM before calling the JS which tries to inject the Recaptcha HTML. Fixes ticket #327 --- modules/recaptcha/views/form_recaptcha.html.php | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/recaptcha/views/form_recaptcha.html.php (limited to 'modules/recaptcha/views/form_recaptcha.html.php') diff --git a/modules/recaptcha/views/form_recaptcha.html.php b/modules/recaptcha/views/form_recaptcha.html.php new file mode 100644 index 00000000..f5b36335 --- /dev/null +++ b/modules/recaptcha/views/form_recaptcha.html.php @@ -0,0 +1,11 @@ +
+ + + -- cgit v1.2.3 From 9f51395151398beecc8eda192a470ab704ec9bc6 Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Tue, 2 Jun 2009 12:31:27 -0700 Subject: fix preamble so file structure test passes --- modules/recaptcha/views/form_recaptcha.html.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/recaptcha/views/form_recaptcha.html.php') diff --git a/modules/recaptcha/views/form_recaptcha.html.php b/modules/recaptcha/views/form_recaptcha.html.php index f5b36335..abdf8428 100644 --- a/modules/recaptcha/views/form_recaptcha.html.php +++ b/modules/recaptcha/views/form_recaptcha.html.php @@ -1,3 +1,4 @@ +