Changeset e47856


Ignore:
Timestamp:
Aug 24, 2008, 4:09:05 PM (11 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
bb5f98
Parents:
dc9c4c
Message:

store gMsgCompose to access it after msgComposeDialog was closed (to store for instance Character Encoding)

Location:
chrome/content/v_identity
Files:
2 edited

Legend:

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

    rdc9c4c re47856  
    209209    },
    210210    readValue : function() {
    211         this.value = gMsgCompose.compFields.characterSet;
     211        // read the value from the internal vI object, global object might not be available any more
     212        // happens especially while storing after sending the message
     213        this.value = vI.gMsgCompose.compFields.characterSet;
    212214        if (gCharsetConvertManager) {
    213215            var charsetAlias = gCharsetConvertManager.getCharsetAlias(this.value);
  • chrome/content/v_identity/v_identity.js

    rdc9c4c re47856  
    159159                .createInstance(Components.interfaces.nsIScriptableUnicodeConverter),
    160160
     161    gMsgCompose : null, // to store the global gMsgCompose after MsgComposeDialog is closed
     162
    161163    // Those variables keep pointers to original functions which might get replaced later
    162164    original_functions : {
     
    337339    initSystemStage1 : function() {
    338340        vI_notificationBar.dump("## v_identity: initSystemStage1.\n")
     341        vI.gMsgCompose = gMsgCompose;
    339342        vI_smtpSelector.init();
    340343        vI_msgIdentityClone.init();
Note: See TracChangeset for help on using the changeset viewer.