Changeset ac55f1


Ignore:
Timestamp:
Oct 2, 2008, 4:02:22 PM (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:
e4f5a7
Parents:
174b75
Message:

don't change senders field while entering address, only after leaving the field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/v_identity.xml

    r174b75 rac55f1  
    251251                <xul:spacer flex="1" /></xul:vbox>
    252252                <xul:vbox flex="1"><xul:spacer flex="1" />
    253                     <xul:textbox anonid="textBox" type="search" id="msgIdentity_clonetextBoxElem" class="plain menulist_clone-textbox" xbl:inherits="value=label,crop,accesskey,vid" allowevents="true" oncommand="event.stopPropagation();document.getBindingParent(this).inputEvent();" crop="right" />
     253<!--                textbox is internally an html:input field which inherits the onblur event.
     254                Thats why we have to search the textbox before calling blurEvent() -->
     255                    <xul:textbox anonid="textBox" type="search" id="msgIdentity_clonetextBoxElem" class="plain menulist_clone-textbox" allowevents="true" xbl:inherits="value=label,crop,accesskey,vid" oncommand="event.stopPropagation(); document.getBindingParent(this).inputEvent();"
     256                onblur="event.stopPropagation(); var elem = this; while (elem.localName != 'textbox') elem = elem.parentNode; document.getBindingParent(elem).blurEvent();"
     257                 crop="right" />
    254258                <xul:spacer flex="1" /></xul:vbox>
    255259            <xul:vbox><xul:spacer flex="1" />
     
    422426            return this._msgIdentityElem.selectedItem;
    423427        ]]></getter>
    424     </property>
    425    
     428    </property>
     429    <method name="blurEvent">
     430            <body><![CDATA[
     431        vI_notificationBar.dump("\n** v_identity.xml blurEvent")
     432        this.inputEvent(); // timeout might prevent inputEvent to fire before blurEvent
     433       
     434        this.label = this.identityData.combinedName; // add "<" and ">" to email if required
     435        this.setAttribute("label", this.label);
     436        ]]></body>
     437    </method>
    426438    <method name="inputEvent">
    427439            <body><![CDATA[     
     
    429441       
    430442        this.identityData.combinedName = this.label;
    431         this.label = this.identityData.combinedName; // reset to possibly changed value
    432         this.setAttribute("label", this.label);
    433443       
    434444        var existingIdentity = this.checkForVirtualIdentity();
Note: See TracChangeset for help on using the changeset viewer.