| | |
| | | /* |
| | | /* |
| | | +-----------------------------------------------------------------------+ |
| | | | RoundCube Webmail Client Script | |
| | | | | |
| | |
| | | this.enable_command('add-attachment', 'send-attachment', 'send', true); |
| | | |
| | | if (this.env.messagecount) |
| | | this.enable_command('select-all', 'select-none', true); |
| | | this.enable_command('select-all', 'select-none', 'sort', true); |
| | | |
| | | this.set_page_buttons(); |
| | | |
| | |
| | | this.list_mailbox(props); |
| | | else if (this.task=='addressbook') |
| | | this.list_contacts(); |
| | | break; |
| | | |
| | | case 'sort': |
| | | // get the type of sorting |
| | | this.list_mailbox('', '', props); |
| | | break; |
| | | |
| | | case 'nextpage': |
| | |
| | | |
| | | |
| | | // list messages of a specific mailbox |
| | | this.list_mailbox = function(mbox, page) |
| | | this.list_mailbox = function(mbox, page, sort) |
| | | { |
| | | var add_url = ''; |
| | | var target = window; |
| | |
| | | if (!mbox) |
| | | mbox = this.env.mailbox; |
| | | |
| | | // add sort to url if set |
| | | if (sort) |
| | | add_url += '&_sort=' + sort; |
| | | |
| | | // set page=1 if changeing to another mailbox |
| | | if (!page && mbox != this.env.mailbox) |
| | | { |