diff --git a/UI/Templates/MailerUI/UIxMailEditor.wox b/UI/Templates/MailerUI/UIxMailEditor.wox index fa29a9a1e..85e34c3f1 100644 --- a/UI/Templates/MailerUI/UIxMailEditor.wox +++ b/UI/Templates/MailerUI/UIxMailEditor.wox @@ -49,7 +49,7 @@ md-highlight-flags="gi">{{ identity.full }}
- +
diff --git a/UI/Templates/PreferencesUI/UIxAccountEditor.wox b/UI/Templates/PreferencesUI/UIxAccountEditor.wox index e208ca156..da2f5db3f 100644 --- a/UI/Templates/PreferencesUI/UIxAccountEditor.wox +++ b/UI/Templates/PreferencesUI/UIxAccountEditor.wox @@ -118,7 +118,7 @@
- +
' + identity.signature + ''); - identity.textSignature = _.map(element.contents(), 'textContent').join(' ').trim(); - } else { - identity.textSignature = ''; - } - return identity.textSignature; + Account.prototype.getTextSignature = function(identity) { + if (identity.signature) { + var element = angular.element('
' + identity.signature + '
'); + identity.textSignature = _.map(element.contents(), 'textContent').join(' ').trim(); } else { - throw Error('Index of identity is out of range'); + identity.textSignature = ''; } + return identity.textSignature; }; /**