From 005aaa0ea229303c92508b1e3091c1dd5a92673e Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Wed, 26 Oct 2022 13:19:15 +0200 Subject: [PATCH] Fix js error in smime add certificate dialog --- mail/js/app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mail/js/app.js b/mail/js/app.js index 057d31cbc7..e18f3927ca 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -5987,6 +5987,7 @@ app.classes.mail = AppJS.extend( mail_container.classList.add((data.class='smime_cert_unknownemail')); smime_signature.set_class(data.class); } + data.class = data.class ? data.class : ""; jQuery(smime_signature.getDOMNode(), smime_encryption.getDOMNode()).off().on('click',function(){ self.smime_certAddToContact(data,true); }).addClass('et2_clickable'); @@ -6044,6 +6045,7 @@ app.classes.mail = AppJS.extend( 'presets[org_name]': _metadata.certDetails.subject.organizationName, 'presets[org_unit]': _metadata.certDetails.subject.organizationUnitName }; + content.class=""; et2_createWidget("dialog", { callback: function(_button_id, _value)