LSformElement::mail: fix duplicated email JS button

This commit is contained in:
Benjamin Renard 2021-04-14 15:55:38 +02:00
parent 639f46d8a4
commit c81e2d0ee3

View file

@ -13,7 +13,7 @@ var LSformElement_mail = new Class({
el = document;
}
el.getElements('input.LSformElement_mail').each(function(input) {
if (!input.hasClass('LSformElement_mail_disableMailSending')) {
if (!input.hasClass('LSformElement_mail_disableMailSending') && input.get('type') != 'hidden') {
this.addBtnAfter.bind(this)(input);
}
}, this);