Archive: Fix bug where next email was not displayed after Archive button use (#6965)

pull/6977/head
Aleksander Machniak 5 years ago
parent 199afedb96
commit 46ee823fd9

@ -5,6 +5,7 @@ CHANGELOG Roundcube Webmail
- Elastic: Fix position and style of auto-complete dropdown on small screens (#6951) - Elastic: Fix position and style of auto-complete dropdown on small screens (#6951)
- Elastic: Fix initial focus on recipients input in mail compose screen - Elastic: Fix initial focus on recipients input in mail compose screen
- Redis: Improve error handling and phpredis 5.X support (#6888) - Redis: Improve error handling and phpredis 5.X support (#6888)
- Archive: Fix bug where next email was not displayed after Archive button use (#6965)
- Fix bug where cache keys were not case-sensitive on MySQL/MSSQL (#6942) - Fix bug where cache keys were not case-sensitive on MySQL/MSSQL (#6942)
- Fix so an error is loogged when encryption fails (#6948) - Fix so an error is loogged when encryption fails (#6948)

@ -26,14 +26,15 @@ function rcmail_archive(prop)
if (!post_data._uid) if (!post_data._uid)
return; return;
rcmail.show_contentframe(false);
// Disable message command buttons until a message is selected // Disable message command buttons until a message is selected
rcmail.enable_command(rcmail.env.message_commands, false); rcmail.enable_command(rcmail.env.message_commands, false);
rcmail.enable_command('plugin.archive', false); rcmail.enable_command('plugin.archive', false);
// let the server sort the messages to the according subfolders // let the server sort the messages to the according subfolders
rcmail.with_selected_messages('move', post_data, null, 'plugin.move2archive'); rcmail.with_selected_messages('move', post_data, null, 'plugin.move2archive');
// Reset preview (must be after with_selected_messages() call)
rcmail.show_contentframe(false);
} }
function rcmail_is_archive() function rcmail_is_archive()

@ -3,7 +3,7 @@
"type": "roundcube-plugin", "type": "roundcube-plugin",
"description": "This adds a button to move the selected messages to an archive folder. The folder (and the optional structure of subfolders) can be selected in the settings panel.", "description": "This adds a button to move the selected messages to an archive folder. The folder (and the optional structure of subfolders) can be selected in the settings panel.",
"license": "GPLv3+", "license": "GPLv3+",
"version": "3.3", "version": "3.4",
"authors": [ "authors": [
{ {
"name": "Thomas Bruederli", "name": "Thomas Bruederli",

Loading…
Cancel
Save