Changeset 4990 in subversion


Ignore:
Timestamp:
Jul 29, 2011 12:57:11 PM (22 months ago)
Author:
alec
Message:
  • Unify/add loading messages when "opening" a frame
File:
1 edited

Legend:

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

    r4984 r4990  
    18811881      this.show_contentframe(true); 
    18821882    else { 
    1883       if (!this.env.frame_lock) { 
    1884         (this.is_framed() ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); 
    1885       } 
     1883      this.lock_frame(); 
    18861884      this.location_href(this.env.comm_path+url, target); 
    18871885 
     
    19161914    if (!show && this.busy) 
    19171915      this.set_busy(false, null, this.env.frame_lock); 
     1916  }; 
     1917 
     1918  this.lock_frame = function() 
     1919  { 
     1920    if (!this.env.frame_lock) 
     1921      (this.is_framed() ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); 
    19181922  }; 
    19191923 
     
    39073911        add_url += '&_gid='+urlencode(this.env.group); 
    39083912 
    3909       this.set_busy(true); 
    3910       this.location_href(this.env.comm_path+'&_action='+action+'&_source='+urlencode(this.env.source)+'&_cid='+urlencode(cid) + add_url, target); 
     3913      this.lock_frame(); 
     3914      this.location_href(this.env.comm_path+'&_action='+action 
     3915        +'&_source='+urlencode(this.env.source) 
     3916        +'&_cid='+urlencode(cid) + add_url, target); 
    39113917    } 
    39123918    return true; 
     
    44284434    } 
    44294435 
     4436    this.lock_frame(); 
    44304437    this.location_href(this.env.comm_path+'&_action=search'+add_url, target); 
    44314438 
     
    44614468        target = window.frames[this.env.contentframe]; 
    44624469      } 
     4470      this.lock_frame(); 
    44634471      this.location_href(this.env.comm_path+'&_action=edit-prefs&_section='+id+add_url, target); 
    44644472    } 
     
    48624870    } 
    48634871    else { 
    4864       if (!this.env.frame_lock) { 
    4865         (parent.rcmail ? parent.rcmail : this).env.frame_lock = this.set_busy(true, 'loading'); 
    4866       } 
     4872      this.lock_frame(); 
    48674873      this.location_href(this.env.comm_path+url, target); 
    48684874    } 
Note: See TracChangeset for help on using the changeset viewer.