diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-04 17:21:34 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2011-01-04 17:21:34 +0000 |
| commit | 60c1ddd8809493d3bcb679c46e46a777cb25e0cd (patch) | |
| tree | 64d8f5faf6f08113fba6a2fc72e49124a226a2a4 /plugins/archive/archive.js | |
| parent | fe07ed295958d50c766b0972e647e28d8cf1b4ba (diff) | |
Simplify archive plugin: trigger move-to-folder client side, only showing one confirmation message
git-svn-id: https://svn.roundcube.net/trunk@4390 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'plugins/archive/archive.js')
| -rw-r--r-- | plugins/archive/archive.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/archive/archive.js b/plugins/archive/archive.js index ce5d0f5e2..a83750819 100644 --- a/plugins/archive/archive.js +++ b/plugins/archive/archive.js @@ -8,10 +8,8 @@ function rcmail_archive(prop) if (!rcmail.env.uid && (!rcmail.message_list || !rcmail.message_list.get_selection().length)) return; - var uids = rcmail.env.uid ? rcmail.env.uid : rcmail.message_list.get_selection().join(','), - lock = rcmail.set_busy(true, 'loading'); - - rcmail.http_post('plugin.archive', '_uid='+uids+'&_mbox='+urlencode(rcmail.env.mailbox), lock); + if (rcmail.env.mailbox != rcmail.env.archive_folder) + rcmail.command('moveto', rcmail.env.archive_folder); } // callback for app-onload event |
