Project

General

Profile

« Previous | Next » 

Revision 8251

include link to show the captcha - ensures we have all the divs loaded when the script runs to generate the code. https://projects.ecoinformatics.org/ecoinfo/issues/6098

View differences:

lib/style/common/templates/ldapRegister.tmpl
194 194
                    *Verification Code:
195 195
                </td>
196 196
                <td align="right">
197
                	<script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
198
                	<script type="text/javascript">
199
						function showRecaptcha(element) {
200
							Recaptcha.create("[% recaptchaPublicKey %]", element, {
201
							theme: "clean",
202
							callback: Recaptcha.focus_response_field});
203
						}
204
						showRecaptcha("captchaArea");
205
					</script>
206
					<div id="captchaArea"></div>
197
                	<div id="captchaArea">
198
                            <a onclick="showRecaptcha('captchaArea');">Show Code</a>
199
                    </div>
200
                    <script type="text/javascript" src="http://www.google.com/recaptcha/api/js/recaptcha_ajax.js"></script>
201
                    <script type="text/javascript">
202
	                    function showRecaptcha(element) {
203
	                            Recaptcha.create("[% recaptchaPublicKey %]", element, {
204
	                            theme: "clean",
205
	                            callback: Recaptcha.focus_response_field});
206
	                            return false;
207
	                    }
208
                    </script>
207 209
                </td>
208 210
            </tr>
209 211
        [% END %]

Also available in: Unified diff