Changeset 3691 in subversion


Ignore:
Timestamp:
Jun 1, 2010 2:32:52 AM (3 years ago)
Author:
thomasb
Message:

Fix subject column after re-arranging cols

Location:
trunk/roundcubemail/program/js
Files:
2 edited

Legend:

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

    r3689 r3691  
    15021502      this.set_env('flagged_col', found); 
    15031503 
     1504    if ((found = $.inArray('subject', this.env.coltypes)) >= 0) 
     1505      this.set_env('subject_col', found); 
     1506 
    15041507    this.http_post('save-pref', { '_name':'list_cols', '_value':this.env.coltypes }); 
    15051508  }; 
  • trunk/roundcubemail/program/js/list.js

    r3682 r3691  
    13941394  if (this.subject_col == from) 
    13951395    this.subject_col = to > from ? to - 1 : to; 
     1396  else if (this.subject_col < from && to <= this.subject_col) 
     1397    this.subject_col++; 
     1398  else if (this.subject_col > from && to >= this.subject_col) 
     1399    this.subject_col--; 
    13961400 
    13971401  this.triggerEvent('column_replace'); 
Note: See TracChangeset for help on using the changeset viewer.