Changeset 955

Show
Ignore:
Timestamp:
2008-04-26 15:31:00 (7 months ago)
Author:
MaierMan
Message:

Sort the list

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/serverswitcher/chrome/content/paneServerSwitcher.js

    r953 r955  
    5555                let c = {}; 
    5656                let limits = Preferences._pref.getChildList(SSW_PREF_LIMITS, c); 
     57                limits.sort(); 
    5758                 
    5859                for (let i = 0; i < c.value; ++i) { 
     
    9899        if (ps.prompt(window, _('ssw.new.caption'), _('ssw.new.desc'), rv, null, {}) && rv.value) { 
    99100                let fs = Cc['@mozilla.org/docshell/urifixup;1'].getService(Ci.nsIURIFixup); 
    100                 rv = this.getHost(fs.createFixupURI(rv.value, 0x0).host); 
     101                rv = SSW_getBaseDomain(fs.createFixupURI(rv.value, 0x0)); 
    101102                Preferences.set(SSW_PREF_LIMITS + rv, 2); 
    102103                this._load(rv);