Changeset 7d75f7


Ignore:
Timestamp:
May 18, 2008, 10:41:53 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
c9d792
Parents:
821467
Message:

adapted for TB 3.x

Location:
chrome/content/v_identity
Files:
3 edited

Legend:

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

    r821467 r7d75f7  
    2121        this.ID_NAMES = [];
    2222        var accounts = queryISupportsArray(gAccountManager.accounts, Components.interfaces.nsIMsgAccount);
    23         accounts.sort(compareAccountSortOrder);
     23        if (typeof(sortAccounts)=="function") // TB 3.x
     24            accounts.sort(sortAccounts);
     25        else if (typeof(compareAccountSortOrder)=="function") // TB 2.x
     26            accounts.sort(compareAccountSortOrder);
    2427        for (var i in accounts) {
    2528            var server = accounts[i].incomingServer;
  • chrome/content/v_identity/vI_smtpSelector.js

    r821467 r7d75f7  
    109109            // find the account related to the identity, to get the account-related default smtp, if it exists.
    110110            var accounts = queryISupportsArray(gAccountManager.accounts, Components.interfaces.nsIMsgAccount);
    111             accounts.sort(compareAccountSortOrder);
     111           
     112            if (typeof(sortAccounts)=="function") // TB 3.x
     113                accounts.sort(sortAccounts);
     114            else if (typeof(compareAccountSortOrder)=="function") // TB 2.x
     115                accounts.sort(compareAccountSortOrder);
    112116           
    113117            for (var x in accounts) {
  • chrome/content/v_identity/v_identity.js

    r821467 r7d75f7  
    107107            vI_notificationBar.dump("## v_identity: mod. FillIdentityList\n");
    108108            var accounts = queryISupportsArray(gAccountManager.accounts, Components.interfaces.nsIMsgAccount);
    109             accounts.sort(compareAccountSortOrder);
     109            if (typeof(sortAccounts)=="function") // TB 3.x
     110                accounts.sort(sortAccounts);
    110111
    111112            for (var i in accounts) {
     
    372373
    373374vI.replacement_functions.replace_FillIdentityList();
    374 window.addEventListener("load", vI.init, false);
     375window.addEventListener("compose-window-open", vI.init, false);
    375376window.addEventListener("unload", vI.remove, false);
Note: See TracChangeset for help on using the changeset viewer.