summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Knox <psimyn@gmail.com>2017-04-04 10:24:28 +1000
committerSimon Knox <psimyn@gmail.com>2017-04-04 10:24:28 +1000
commit09ef9a4cbcfef77df138689b5c5245aae5130828 (patch)
treed0eefce519d6d01cd51df401dd599b1944482905
parentf55e719edabacd0a015f484ddb4284d3aac298bf (diff)
downloadgitlab-ce-09ef9a4cbcfef77df138689b5c5245aae5130828.tar.gz
remove is-active class after adding emoji
-rw-r--r--app/assets/javascripts/awards_handler.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/assets/javascripts/awards_handler.js b/app/assets/javascripts/awards_handler.js
index 9349918f7a0..edf057faa91 100644
--- a/app/assets/javascripts/awards_handler.js
+++ b/app/assets/javascripts/awards_handler.js
@@ -263,7 +263,8 @@ AwardsHandler.prototype.addAward = function addAward(
this.addAwardToEmojiBar(votesBlock, normalizedEmoji, checkMutuality);
return typeof callback === 'function' ? callback() : undefined;
});
- return $('.emoji-menu').removeClass('is-visible');
+ $('.emoji-menu').removeClass('is-visible');
+ $('.js-add-award.is-active').removeClass('is-active');
};
AwardsHandler.prototype.addAwardToEmojiBar = function addAwardToEmojiBar(