Changeset 1f7cec


Ignore:
Timestamp:
Dec 2, 2008, 3:15:04 PM (12 years ago)
Author:
rene <rene@…>
Branches:
lite_0.1, multiEdit, ng_0.6, ng_0.6_help, ng_0.8, ng_0.9
Children:
3db050
Parents:
367290
Message:

don't access window elements before it is loaded completely

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

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

    r367290 r1f7cec  
    207207        vI.adapt_genericSendMessage();
    208208        gMsgCompose.RegisterStateListener(vI.ComposeStateListener);
     209        document.getElementById("vI_tooltipPopupset")
     210            .addTooltip(document.getElementById("msgIdentity_clone"), false);
    209211        window.addEventListener('compose-window-reopen', vI.reopen, true);
    210212        window.addEventListener('compose-window-close', vI.close, true);
  • chrome/content/v_identity/v_identity.xml

    r367290 r1f7cec  
    274274        var inputTextbox = document.getAnonymousElementByAttribute(this, "class", "plain menulist_clone-textbox");
    275275       
    276         // check if 'search' textboxes are implemented, if not change to 'timed'
     276        // check if 'search' textboxes are not implemented change to 'timed'
    277277        if (!inputTextbox.timeout) inputTextbox.setAttribute("type", "timed");
    278278        inputTextbox.setAttribute("timeout", "300")
    279279       
    280         document.getElementById("vI_tooltipPopupset").addTooltip(this, false);
     280        // to ealy to access vI_tooltipPopupset, this might break the interface
     281        // it will be done in v_identity.js init
     282        // document.getElementById("vI_tooltipPopupset").addTooltip(this, false);
    281283        ]]>
    282284    </constructor>
Note: See TracChangeset for help on using the changeset viewer.