From 7ad10b5ea6d50063ca940849f2b19eab192122d6 Mon Sep 17 00:00:00 2001 From: Guilherme Carreiro Date: Tue, 18 Nov 2014 20:29:46 -0200 Subject: [PATCH] =?UTF-8?q?FIX:=20Sharing=20link=20stood=20visible=20after?= =?UTF-8?q?=20using=20browser=E2=80=99s=20back=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/discourse/views/share.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/views/share.js.es6 b/app/assets/javascripts/discourse/views/share.js.es6 index 2b4d6e035..1c354e46d 100644 --- a/app/assets/javascripts/discourse/views/share.js.es6 +++ b/app/assets/javascripts/discourse/views/share.js.es6 @@ -104,6 +104,8 @@ export default Discourse.View.extend({ }, willDestroyElement: function() { + this.get('controller').send('close'); + $('html').off('click.discoure-share-link') .off('mousedown.outside-share-link') .off('keydown.share-view');