Download & Extend

Move to Drupal.behavior & Drupal.settings

Project:reCAPTCHA
Version:7.x-1.x-dev
Component:reCAPTCHA Captcha
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

This should improve compatibility with IE, especially older versions

AttachmentSize
Drupal-behaviors.patch1.24 KB

Comments

#1

Version:6.x-1.x-dev» 7.x-1.x-dev

Definitely :-) .

#2

Clarification: My patch is for d6. For d7, the Drupal.behaviors.recapcha object needs an "attach" and "detach" method. My method needs to be moved to "attach".

e.g.

Drupal.behaviors.recapcha = {
attach: function(context) {
Recaptcha.create(Drupal.settings.recaptcha.public_key, Drupal.settings.recaptcha.container, {theme: Drupal.settings.recaptcha.theme});
},
detach: function(context) {
}
}