Changeset 1eee54


Ignore:
Timestamp:
Feb 21, 2008, 4:01:51 PM (12 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
ef9a24
Parents:
c18efa
Message:

on reopen stateListener triggers only in reply-cases. Adapted.

File:
1 edited

Legend:

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

    rc18efa r1eee54  
    268268        vI_notificationBar.clear_dump()
    269269        vI_notificationBar.dump("## v_identity: composeDialog reopened. " + gMsgCompose.type + "\n")
     270       
    270271        // clean all elements
    271272        vI_smtpSelector.clean();
     
    274275        vI_storage.clean();
    275276        vI_smartIdentity.clean();
     277       
    276278        // now (re)init the elements
    277279        vI.initSystemStage1();
    278280       
    279         // stateLsitener only works with reply etc., so check MsgType to activate stage2
     281        // stateListener only works in reply-cases
     282        // so activate stage2 in reply-cases trough StateListener
     283        // in other cases directly
    280284        var msgComposeType = Components.interfaces.nsIMsgCompType;
    281285        switch (gMsgCompose.type) {
     
    283287            case msgComposeType.NewsPost:
    284288            case msgComposeType.MailToUrl:
    285                 vI.initSystemStage2();
    286                 break;
    287             default:
     289            case msgComposeType.Draft:
     290            case msgComposeType.Template:
     291            case msgComposeType.ForwardAsAttachment:
     292            case msgComposeType.ForwardInline:
     293                vI.initSystemStage2(); break;
     294            case msgComposeType.Reply:
     295            case msgComposeType.ReplyAll:
     296            case msgComposeType.ReplyToGroup:
     297            case msgComposeType.ReplyToSender:
     298            case msgComposeType.ReplyToSenderAndGroup:
     299            case msgComposeType.ReplyWithTemplate:
    288300                gMsgCompose.RegisterStateListener(vI.ComposeStateListener);
    289301        }
Note: See TracChangeset for help on using the changeset viewer.