Changeset c7ec22


Ignore:
Timestamp:
Sep 19, 2008, 1:25:16 AM (13 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
1b7cff
Parents:
19daa3
Message:

bugfixes, small enhancements

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

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

    r19daa3 rc7ec22  
    232232    get key() { if (this._value == null) var dummy = this.value; return this._key },
    233233    get value() {
    234         // if key == null, it is not known / if it is "" it's the Default SMTP
    235         if (this._value != null) {
     234        if (this._value == null) {
    236235            this._value = "";
     236            // if key == null, it is not known / if it is "" it's the Default SMTP
    237237            if (this._key == "") this._value = this.DEFAULT_TAG;
    238238            else if (this._key != null) {
     
    256256    _key : null,
    257257    _value : null,
    258     _valid : null,
    259258
    260259    set key(key) { this._key = key; this._value = null; },
    261260    get key() { if (this._value == null) var dummy = this.value; return this._key },
    262261    get value() {
    263         if (this._value != null) {
     262        if (this._value == null) {
    264263            this._value = "";
    265264            if (this._key) {
     
    268267                var identity = accountManager.getIdentity(this._key);
    269268                if (identity) this._value = identity.identityName
    270                 this._key = null;   // if non-existant ID handle like non available
     269                else this._key = null;  // if non-existant ID handle like non available
    271270            }
    272271        }
  • chrome/content/v_identity/v_identity.xml

    r19daa3 rc7ec22  
    9090                "</tr>" +
    9191                "</table>"
     92//          vI_notificationBar.dump("** v_identity.xml added tooltip with id='" +  this.elem.identityData.id.key + "'\n")
    9293            this._tooltipBrowser.outputString = this._identityInfo;
    9394        }
     
    132133        this.label = this._identityDataStorage.combinedName;
    133134        this.value = this._identityDataStorage.id.key;
     135//      vI_notificationBar.dump("** v_identity.xml fromPopupItem_clone constructor id='" + this.value + "'.\n")
     136
    134137        this.description = this._identityDataStorage.sideDescription;
    135138       
     
    213216    <property name="smtp" onget="return this._smtpMenu.selectedItem.getAttribute('key');" >
    214217        <setter><![CDATA[
     218        if (val == null) return; // dont overwrite if not set
     219//      vI_notificationBar.dump("** v_identity.xml smtp set to '" + val + "'\n")
    215220        var MenuItems = this._smtpPopup.childNodes
    216221        for (var index = 0; index < MenuItems.length; index++) {
    217222            if (MenuItems[index].localName == "menuseparator") continue;
    218             if (MenuItems[index].getAttribute("key") == val?val:"") {
     223            if (MenuItems[index].getAttribute("key") == val) {
    219224                this._smtpMenu.selectedItem = MenuItems[index];
    220225                break;
     
    469474        ]]></getter>
    470475        <setter><![CDATA[
     476//      vI_notificationBar.dump("** v_identity.xml identityData setter'\n")
    471477        if (!val) this._identityDataStorage = null
    472478        else {
     
    480486                    this._identityDataStorage.sideDescription = (idName)?" - "+idName:"";
    481487                }
     488               
     489                if (this._identityDataStorage.smtp.key == null)
     490                    this._identityDataStorage.smtp.key = oldIdentityData.smtp.key;
     491               
    482492                this._identityDataStorage.extras.setValues();
    483493           
     
    488498            this.label = this._identityDataStorage.combinedName;
    489499            this.value = this._identityDataStorage.id.key;
     500//          vI_notificationBar.dump("** v_identity.xml identityData setter value='" + this.value + "'\n")
    490501            this.description = this._identityDataStorage.sideDescription;
    491             document.getAnonymousElementByAttribute(this, "anonid", "smtpServerListHbox").smtp = this._identityDataStorage.smtp;
     502            document.getAnonymousElementByAttribute(this, "anonid", "smtpServerListHbox").smtp = this._identityDataStorage.smtp.key;
    492503           
    493504        }
     505//      vI_notificationBar.dump("** v_identity.xml identityData setter done.'\n")
    494506        ]]></setter>
    495507    </property>
Note: See TracChangeset for help on using the changeset viewer.