| | |
| | | /* |
| | | +-----------------------------------------------------------------------+ |
| | | | RoundCube List Widget | |
| | | | Roundcube List Widget | |
| | | | | |
| | | | This file is part of the RoundCube Webmail client | |
| | | | Copyright (C) 2006-2009, RoundCube Dev, - Switzerland | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2006-2009, Roundcube Dev, - Switzerland | |
| | | | Licensed under the GNU GPL | |
| | | | | |
| | | +-----------------------------------------------------------------------+ |
| | |
| | | |
| | | |
| | | /** |
| | | * RoundCube List Widget class |
| | | * Roundcube List Widget class |
| | | * @contructor |
| | | */ |
| | | function rcube_list_widget(list, p) |
| | |
| | | // update subject column position |
| | | if (this.subject_col == from) |
| | | this.subject_col = to > from ? to - 1 : to; |
| | | else if (this.subject_col < from && to <= this.subject_col) |
| | | this.subject_col++; |
| | | else if (this.subject_col > from && to >= this.subject_col) |
| | | this.subject_col--; |
| | | |
| | | this.triggerEvent('column_replace'); |
| | | } |