Changeset 3afa32


Ignore:
Timestamp:
Jan 26, 2015, 12:23:54 PM (7 years ago)
Author:
rene <rene@…>
Branches:
ng_0.9
Children:
0a4746
Parents:
58f7ee
Message:

just use local relations instead of global element search

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/vI_storage.js

    r58f7ee r3afa32  
    9494      awPopupOnCommand: function (element, currentWindow) {
    9595        Log.debug("awPopupOnCommand '" + element.id + "' '" + element.value + "'");
    96         storage.__updateVIdentityFromStorage(currentWindow.document.getElementById(element.id.replace(/^addressCol1/, "addressCol2")), currentWindow);
     96        storage.__updateVIdentityFromStorage(element.parentNode.nextSibling.firstChild, currentWindow);
    9797        if (element.selectedItem.getAttribute("value") == "addr_reply") // if reply-to is manually entered disable AutoReplyToSelf
    9898          currentWindow.document.getElementById("virtualIdentityExtension_autoReplyToSelfLabel").setAttribute("hidden", "true");
     
    165165        }
    166166        var currentDocument = currentWindow.document;
    167         var recipientType = currentDocument.getElementById(inputElement.id.replace(/^addressCol2/, "addressCol1"))
    168           .selectedItem.getAttribute("value");
     167        var recipientType = inputElement.parentNode.previousSibling.firstChild.selectedItem.getAttribute("value");
    169168
    170169        var row = inputElement.id.replace(/^addressCol2#/, "")
Note: See TracChangeset for help on using the changeset viewer.