diff options
| author | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-23 14:39:09 +0000 |
|---|---|---|
| committer | roundcube <roundcube@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2005-10-23 14:39:09 +0000 |
| commit | 73ee59cff7f37705e8131e85232060fb7ba8f525 (patch) | |
| tree | 71e94ea06fc742362b2be2ed503d68cc1419900f /roundcubemail/program/js | |
| parent | 72f37242a073b367c5d5c0934d3253a1c962c504 (diff) | |
Added patches for default language and sorting function
git-svn-id: https://svn.roundcube.net/trunk@56 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
| -rw-r--r-- | roundcubemail/program/js/app.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js index 1e70c42fd..2b9a50f96 100644 --- a/roundcubemail/program/js/app.js +++ b/roundcubemail/program/js/app.js @@ -127,7 +127,7 @@ function rcube_webmail() 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(); @@ -443,6 +443,11 @@ function rcube_webmail() this.list_contacts(); break; + case 'sort': + // get the type of sorting + this.list_mailbox('', '', props); + break; + case 'nextpage': this.list_page('next'); break; @@ -1011,7 +1016,7 @@ function rcube_webmail() // 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; @@ -1019,6 +1024,10 @@ function rcube_webmail() 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) { |
