Changeset 85210a


Ignore:
Timestamp:
Nov 6, 2007, 4:59:59 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
80ebc9
Parents:
b52b6b
Message:

autoReply changed focus if reply-to-field is added, as a result onBlur event rises on From:-field. OnBlur? blocked.

File:
1 edited

Legend:

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

    rb52b6b r85210a  
    170170    },
    171171   
     172    blurEventBlocked : false,
    172173    blurEvent : function() {
     174        if (vI_msgIdentityClone.blurEventBlocked) return;
    173175        vI_msgIdentityClone.initMsgIdentityTextbox_clone();
    174176        var address = vI.helper.getAddress();
     
    261263        // if replyToInputElem not set (so no initial Reply-To row was found) add a row now
    262264        if (!vI_msgIdentityClone.replyToInputElem) {
     265            vI_msgIdentityClone.blurEventBlocked = true;
    263266            awAddRecipient("addr_reply",vI_msgIdentityClone.elements.Obj_MsgIdentityTextbox_clone.value)
    264             window.setTimeout("vI_msgIdentityClone.elements.Obj_MsgIdentityTextbox_clone.focus();", 0)
     267            window.setTimeout("vI_msgIdentityClone.elements.Obj_MsgIdentityTextbox_clone.focus();vI_msgIdentityClone.blurEventBlocked = false;", 0)
    265268            vI_msgIdentityClone.replyToPopupElem = awGetPopupElement(top.MAX_RECIPIENTS - 1)
    266269            vI_msgIdentityClone.replyToInputElem = awGetInputElement(top.MAX_RECIPIENTS - 1)
Note: See TracChangeset for help on using the changeset viewer.