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) --- program/js/app.js | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-) 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