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) --- program/js/app.js | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/program/js/app.js b/program/js/app.js index e639448..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 }); } } @@ -7248,8 +7250,8 @@ // html5 file-drop API this.document_drag_hover = function(e, over) { - e.preventDefault(); - $(ref.gui_objects.filedrop)[(over?'addClass':'removeClass')]('active'); + // don't e.preventDefault() here to not block text dragging on the page (#1490619) + $(this.gui_objects.filedrop)[(over?'addClass':'removeClass')]('active'); }; this.file_drag_hover = function(e, over) -- Gitblit v1.9.1