From 47bfe966974004ebcd1894f550bfb0d0e7915bfa Mon Sep 17 00:00:00 2001 From: Matt Lee Date: Thu, 11 Jun 2015 12:25:12 -0700 Subject: [PATCH] Sharing: Prevent opening multiple share menus when spamming clicks. --- r2/r2/public/static/js/post-sharing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/r2/r2/public/static/js/post-sharing.js b/r2/r2/public/static/js/post-sharing.js index d76ab9568e..9bf6c90324 100644 --- a/r2/r2/public/static/js/post-sharing.js +++ b/r2/r2/public/static/js/post-sharing.js @@ -465,9 +465,10 @@ $parentThing.find('.entry .buttons').after(postSharing.el); + r.ui.activeShareMenu = postSharing; + postSharing.on('show', function() { r.analytics.fireGAEvent('post-sharing', 'open', thingId); - r.ui.activeShareMenu = postSharing; }); postSharing.on('unmount', function() {