From c10eae088473ff1e5ea9dcaef88fc525409de026 Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 27 Jan 2016 02:47: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 | 5 ++++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index dd3fd8d..efdc168 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -17,6 +17,7 @@
- Fix XSS issue in SVG images handling (#1490625)
- Fix missing language name in "Add to Dictionary" request in HTML mode (#1490634)
- 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.2-beta
----------------
diff --git a/program/js/app.js b/program/js/app.js
index 45295c7..9a9a1d6 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -8110,7 +8110,10 @@
this.enable_command('set-listmode', this.env.threads && !is_multifolder);
if (list.rowcount > 0 && !$(document.activeElement).is('input,textarea'))
list.focus();
- this.msglist_select(list);
+
+ // trigger 'select' so all dependent actions update its state
+ // e.g. plugins use this event to activate buttons (#1490647)
+ list.triggerEvent('select');
}
if (response.action != 'getunread')
--
Gitblit v1.9.1