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) --- 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 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