Skip to content

Commit

Permalink
Sharing: Prevent opening multiple share menus when spamming clicks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lee committed Jun 11, 2015
1 parent 04766de commit 47bfe96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion r2/r2/public/static/js/post-sharing.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 47bfe96

Please sign in to comment.