Skip to content

Commit

Permalink
Fix form field existence check.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Aug 11, 2014
1 parent f79a953 commit a51a760
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion imp/js/compose.js
Expand Up @@ -325,7 +325,12 @@ var ImpCompose = {
if (this.redirect) {
ImpComposeBase.focus('to');
} else {
ImpComposeBase.setSignature(ImpComposeBase.editor_on, $F('signature') ? $F('signature') : ImpComposeBase.identities[$F('last_identity')]);
ImpComposeBase.setSignature(
ImpComposeBase.editor_on,
($('signature') && $F('signature'))
? $F('signature')
: ImpComposeBase.identities[$F('last_identity')]
);

handler = this.keyDownHandler.bindAsEventListener(this);
/* Prevent Return from sending messages - it should bring us out
Expand Down

0 comments on commit a51a760

Please sign in to comment.