From 749630294563ff017f81edb4c091e27502905c2d Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 27 Jan 2016 02:53:12 -0500
Subject: [PATCH] Fix bug where Archive/Junk buttons were not active after page jump with select=all mode (#1490647)
---
CHANGELOG | 1 +
program/js/app.js | 4 +++-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index e40e1c1..741c844 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -4,6 +4,7 @@
- Enable use of TLSv1.1 and TLSv1.2 for IMAP (#1490640)
- Fix XSS issue in SVG images handling (#1490625)
- Fix (again) security issue in DBMail driver of password plugin [CVE-2015-2181] (#1490643)
+- Fix bug where Archive/Junk buttons were not active after page jump with select=all mode (#1490647)
RELEASE 1.0.8
-------------
diff --git a/program/js/app.js b/program/js/app.js
index ba7b711..d454109 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -7111,7 +7111,9 @@
this.enable_command('expand-all', 'expand-unread', 'collapse-all', this.env.threading && this.env.messagecount);
if ((response.action == 'list' || response.action == 'search') && this.message_list) {
- this.msglist_select(this.message_list);
+ // trigger 'select' so all dependent actions update its state
+ // e.g. plugins use this event to activate buttons (#1490647)
+ this.message_list.triggerEvent('select');
this.triggerEvent('listupdate', { folder:this.env.mailbox, rowcount:this.message_list.rowcount });
}
}
--
Gitblit v1.9.1