Changeset 1926 in subversion


Ignore:
Timestamp:
Oct 3, 2008 2:58:06 AM (5 years ago)
Author:
alec
Message:
  • save selected folder when go to compose (to back to proper folder)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/js/app.js

    r1924 r1926  
    822822        var url = this.env.comm_path+'&_action=compose'; 
    823823        
    824         if (this.task=='mail' && this.env.mailbox==this.env.drafts_mailbox) 
     824        if (this.task=='mail') 
    825825          { 
    826           var uid; 
    827           if (uid = this.get_single_uid()) 
    828             url += '&_draft_uid='+uid+'&_mbox='+urlencode(this.env.mailbox); 
    829           } 
     826          url += '&_mbox='+urlencode(this.env.mailbox); 
     827           
     828          if (this.env.mailbox==this.env.drafts_mailbox) 
     829            { 
     830            var uid; 
     831            if (uid = this.get_single_uid()) 
     832              url += '&_draft_uid='+uid; 
     833            } 
     834          } 
    830835        // modify url if we're in addressbook 
    831836        else if (this.task=='addressbook') 
     
    833838          // switch to mail compose step directly 
    834839          if (props && props.indexOf('@') > 0) 
    835           { 
     840            { 
    836841            url = this.get_task_url('mail', url); 
    837842            this.redirect(url + '&_to='+urlencode(props)); 
    838843            break; 
    839           } 
     844            } 
    840845           
    841846          // use contact_id passed as command parameter 
Note: See TracChangeset for help on using the changeset viewer.