Changeset 35e142


Ignore:
Timestamp:
Oct 27, 2007, 3:09:00 PM (12 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
a72ca3
Parents:
42929a
Message:

identity wasnt changed completely if From: field was changed by Hand to a existing Identity

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_msgIdentityClone.js

    r42929a r35e142  
    4848    },
    4949   
    50     // double the Identity-Select Dropdown-Menu
    51     // if you 'created' a virtual Identity and you close the extension area, the Virtual Identity shows up in the
    52     // Identity-Dropdown Menu.
    53     // problem is that there is not yet a existent Identity stored in any account for it, and other Code might
    54     // access the Dropdown-Menu to know which Identity is selected. So show and change only a clone of the real one.
     50    // double the Identity-Select Dropdown-Menu to be more flexible with modifying it
     51    // the original Identity Dropdown Menu is hidden and stores the base Identity, on which one
     52    // the Virtual Identity is build upon
    5553    clone_Obj_MsgIdentity : function() {
    5654        MenuItems = vI_msgIdentityClone.elements.Obj_MsgIdentityPopup.childNodes
     
    8482
    8583    setMenuToIdentity : function (identitykey) {
     84        vI_notificationBar.dump("## vI_msgIdentityClone: setMenuToIdentity key " + identitykey + "\n");
    8685        MenuItems = vI_msgIdentityClone.elements.Obj_MsgIdentityPopup_clone.childNodes
    8786        for (index = 0; index < MenuItems.length; index++) {
     
    273272                vI_msgIdentityClone.elements.Obj_MsgIdentity_clone
    274273                    .setAttribute("oldvalue",null)
     274                //~ vI_msgIdentityClone.elements.Obj_MsgIdentityPopup_clone.doCommand();
     275                vI_msgIdentityClone.setMenuToIdentity(vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.getAttribute("value"));
    275276            }
    276277            // code to show the signature
     
    278279            catch(vErr) { };
    279280           
    280             vI_msgIdentityClone.cleanupReplyTo(false);
    281         }
    282     },
     281            //~ vI_msgIdentityClone.cleanupReplyTo(false);
     282        }
     283    },
     284   
    283285   
    284286    // checks if the Identity currently described by the extension-area fields i still available as
     
    306308                        identity.getUnicharAttribute("useremail") == address.email &&
    307309                        smtpKey == vI_smtpSelector.elements.Obj_SMTPServerList.selectedItem.getAttribute('key')) {
    308                     //~ if (    identity.getUnicharAttribute("fullName") == FullName &&
    309                         //~ identity.getUnicharAttribute("useremail") == Useremail) {
    310                             //~ // all values are identical to an existing Identity
     310                            // all values are identical to an existing Identity
    311311                            // set Identity combobox to this value
    312312                            vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.setAttribute("value", identity.key);
    313                             vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.setAttribute("label", address.name + " <" + address.email + ">");
    314                             vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.setAttribute("accountname", " - " + accounts[i].incomingServer.prettyName);
     313                            vI_notificationBar.dump("## vI_msgIdentityClone: matchingIdentity key " + identity.key + "\n");
    315314                            return false;
    316315                        }
Note: See TracChangeset for help on using the changeset viewer.