From: Michael M Slusarz Date: Fri, 16 Apr 2010 22:04:56 +0000 (-0600) Subject: Bug #8948: Fix sent-mail mbox display when switching identities X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=76b9d11e4426fbe58fc31e27ed3193423b32a4c7;p=horde.git Bug #8948: Fix sent-mail mbox display when switching identities --- diff --git a/imp/js/compose.js b/imp/js/compose.js index 04d0116a1..a80443699 100644 --- a/imp/js/compose.js +++ b/imp/js/compose.js @@ -34,7 +34,6 @@ var ImpCompose = { var id = $F(elt), last = IMP_Compose_Base.getIdentity($F('last_identity')), next = IMP_Compose_Base.getIdentity(id), - i = 0, bcc = $('bcc'), save = $('ssm'), smf = $('sent_mail_folder'), @@ -43,26 +42,16 @@ var ImpCompose = { IMP_Compose_Base.replaceSignature(id); if (this.smf_check) { - $A(smf.options).detect(function(f) { - if (f.value == next.id.smf_name) { - smf.selectedIndex = i; - return true; - } - ++i; - }); + smf.setValue(next.id.smf_name); } else { - if (smf.firstChild) { - smf.replaceChild(document.createTextNode(next.id.smf_name), smf.firstChild); - } else { - smf.appendChild(document.createTextNode(next.id.smf_name)); - } + smf.update(next.id.smf_display); } if (save) { - save.checked = next.id.smf_save; + save.setValue(next.id.smf_save); } if (bcc) { - bccval = bcc.value; + bccval = $F(bcc); if (last.id.bcc) { re = new RegExp(last.id.bcc + ",? ?", 'gi');