LSformElement_mail : Fixed initialize JS code
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 21 Jan 2011 15:11:02 +0000 (16:11 +0100)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 21 Jan 2011 15:11:02 +0000 (16:11 +0100)
public_html/includes/js/LSformElement_mail.js

index 21f122e..6bc3cc5 100644 (file)
@@ -17,7 +17,7 @@ var LSformElement_mail = new Class({
         }
       }, this);
       el.getElements('a.LSformElement_mail').each(function(a) {
-        if (!input.hasClass('LSformElement_mail_disableMailSending')) {
+        if (!a.hasClass('LSformElement_mail_disableMailSending')) {
           this.addBtnAfter.bind(this)(a);
         }
       }, this);