From b2aaae4b19701a5f9d905fb1b2db5927d54d94eb Mon Sep 17 00:00:00 2001 From: m4tx Date: Tue, 13 Jan 2015 01:06:59 +0100 Subject: [PATCH] Fix download panel not showing on rclick after pressing esc Bug: T86389 Change-Id: Ic158c579c4a7a6e48bcbd9cdfb724712b1e2fece --- resources/mmv/mmv.lightboxinterface.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/mmv/mmv.lightboxinterface.js b/resources/mmv/mmv.lightboxinterface.js index f7a0642ce..bb5642704 100644 --- a/resources/mmv/mmv.lightboxinterface.js +++ b/resources/mmv/mmv.lightboxinterface.js @@ -242,8 +242,6 @@ this.currentlyAttached = false; - this.canvas.unattach(); - this.buttons.unattach(); this.$postDiv.off( '.lip' ); @@ -258,6 +256,9 @@ this.optionsDialog.unattach(); this.optionsDialog.closeDialog(); + // Canvas listens for events from dialogs, so should be unattached at the end + this.canvas.unattach(); + this.clearEvents(); // We trigger this event on the document because unattach() can run