Changeset 0dc66f


Ignore:
Timestamp:
Feb 19, 2008, 6:49:44 AM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
1c7340
Parents:
ac21c8
Message:

marked places to add found identities to dropdown menu

File:
1 edited

Legend:

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

    rac21c8 r0dc66f  
    157157                vI_storage.firstUsedStorageData.fullName != storageData.fullName ||
    158158                vI_storage.firstUsedStorageData.id != storageData.id ||
    159                 vI_storage.firstUsedStorageData.smtp != storageData.smtp )
    160                 vI_notificationBar.setNote(vI.elements.strings.getString("vident.smartIdentity.vIStorageCollidingIdentity"),
     159                vI_storage.firstUsedStorageData.smtp != storageData.smtp ) {
     160                    // XX add Identity to dropdown-menu
     161                    vI_notificationBar.setNote(vI.elements.strings.getString("vident.smartIdentity.vIStorageCollidingIdentity"),
    161162                    "storage_notification");
     163            }
    162164        }
    163165        // only update fields if new Identity is different than old one.
    164166        else if (!vI_storage.__equalsCurrentIdentity(storageData)) {
     167            // XX add Identity to dropdown-menu
    165168            var warning = vI_storage.__getReplaceVIdentityWarning(recipient, storageData);
    166169            if (    vI_msgIdentityClone.elements.Obj_MsgIdentity_clone.getAttribute("value") != "vid" ||
    167170                !vI.preferences.getBoolPref("storage_warn_vI_replace") ||
    168171                vI_storage.promptService.confirm(window,"Warning",warning)) {                       
    169                 vI_msgIdentityClone.setMenuToIdentity(storageData.id)
    170                 vI_smtpSelector.setMenuToKey(storageData.smtp)
    171                 if (vI_msgIdentityClone.setIdentity(storageData.fullName + "<" + storageData.email + ">"))
    172                 vI_notificationBar.setNote(vI.elements.strings.getString("vident.smartIdentity.vIStorageUsage") + ".",
    173                     "storage_notification");
     172                    vI_msgIdentityClone.setMenuToIdentity(storageData.id)
     173                    vI_smtpSelector.setMenuToKey(storageData.smtp)
     174                    if (vI_msgIdentityClone.setIdentity(storageData.fullName + "<" + storageData.email + ">"))
     175                    vI_notificationBar.setNote(vI.elements.strings.getString("vident.smartIdentity.vIStorageUsage") + ".",
     176                        "storage_notification");
    174177            }
    175178        }
Note: See TracChangeset for help on using the changeset viewer.