Changeset f94639f7 in github


Ignore:
Timestamp:
Nov 8, 2010 8:21:41 AM (3 years ago)
Author:
alecpl <alec@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
ec211b75
Parents:
3bb9b52
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/js/app.js

    rf664284 rf94639f7  
    18031803      return; 
    18041804 
    1805     var add_url = '', 
    1806       target = window, 
    1807       action = preview ? 'preview': 'show'; 
     1805    var target = window, 
     1806      action = preview ? 'preview': 'show', 
     1807      url = '&_action='+action+'&_uid='+id+'&_mbox='+urlencode(this.env.mailbox); 
    18081808 
    18091809    if (preview && this.env.contentframe && window.frames && window.frames[this.env.contentframe]) { 
    18101810      target = window.frames[this.env.contentframe]; 
    1811       add_url = '&_framed=1'; 
     1811      url += '&_framed=1'; 
    18121812    } 
    18131813 
    18141814    if (safe) 
    1815       add_url = '&_safe=1'; 
     1815      url += '&_safe=1'; 
    18161816 
    18171817    // also send search request to get the right messages 
    18181818    if (this.env.search_request) 
    1819       add_url += '&_search='+this.env.search_request; 
    1820  
    1821     var url = '&_action='+action+'&_uid='+id+'&_mbox='+urlencode(this.env.mailbox)+add_url; 
     1819      url += '&_search='+this.env.search_request; 
     1820 
    18221821    if (action == 'preview' && String(target.location.href).indexOf(url) >= 0) 
    18231822      this.show_contentframe(true); 
    18241823    else { 
    1825       if (!this.env.frame_lock) 
    1826         this.env.frame_lock = this.set_busy(true, 'loading'); 
    1827       if (preview) 
    1828         url += '&_unlock='+this.env.frame_lock; 
     1824      if (!this.env.frame_lock) { 
     1825        (parent.rcmail ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); 
     1826      } 
    18291827      target.location.href = this.env.comm_path+url; 
    18301828 
Note: See TracChangeset for help on using the changeset viewer.