From a2d5db0a9820b672dbd34973401ff9bf58ab915c Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Wed, 27 Jan 2016 02:47:57 -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 cacb3b8..3cab51c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -7,6 +7,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.1.4 ------------- diff --git a/program/js/app.js b/program/js/app.js index 8d4473b..c147c5d 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -7529,7 +7529,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